Skip to content

vaadin-maven-plugin scans twice #21016

@jorgheymans

Description

@jorgheymans

Description of the bug

A fresh app from start.vaadin.com gives this output:

mvn clean install -Pproduction
....
[INFO] >>> vaadin:24.6.5:prepare-frontend (default) > :configure @ my-app >>>
[INFO] 
[INFO] --- vaadin:24.6.5:configure (configure) @ my-app ---
[INFO] 
[INFO] <<< vaadin:24.6.5:prepare-frontend (default) < :configure @ my-app <<<
[INFO] 
[INFO] 
[INFO] --- vaadin:24.6.5:prepare-frontend (default) @ my-app ---
[INFO] Reflections took 1605 ms to scan 200 urls, producing 11676 keys and 60256 values
[INFO] The globally installed Node.js version 14.18.0 is older than the required minimum version 18.12.0. Using Node.js from /home/user/.vaadin.
[INFO] Visited 115 classes. Took 150 ms.
[INFO] Copying frontend resources from jar files ...
[INFO] Visited 178 resources. Took 143 ms.
[INFO] 
[INFO] >>> vaadin:24.6.5:build-frontend (default) > :configure @ my-app >>>
[INFO] 
[INFO] --- vaadin:24.6.5:configure (configure) @ my-app ---
[INFO] 
[INFO] <<< vaadin:24.6.5:build-frontend (default) < :configure @ my-app <<<
[INFO] 
[INFO] 
[INFO] --- vaadin:24.6.5:build-frontend (default) @ my-app ---
**[INFO] Scanning classes to find frontend configurations and dependencies...**
**[INFO] Visited 6509 classes. Took 3874 ms.**
[INFO] Checking if a production mode bundle build is needed
[INFO] A production mode bundle build is not needed
[INFO] Copying frontend resources from jar files ...
[INFO] Visited 178 resources. Took 76 ms.
**[INFO] Scanning classes to find frontend configurations and dependencies...**
**[INFO] Visited 6509 classes. Took 2704 ms.**
[INFO] Build frontend completed in 7080 ms.

-->
**[INFO] Visited 6509 classes. Took 3874 ms.**
**[INFO] Visited 6509 classes. Took 2704 ms.**

This was addressed in #19874 , but it seems to have come back?

Expected behavior

Class scanning occurs only once.

Minimal reproducible example

Helloworld from start.vaadin.com, with the streamlined vaadin-flow fixes https://vaadin.com/blog/streamlined-vaadin-flow-setup-for-v24.4

Versions

Latest helloworld from start.vaadin.com, Vaadin 24.6.5, spring-boot 3.4.2

Metadata

Metadata

Assignees

Projects

Status

Done

Status

Done / Pending Release

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions