Skip to content

PiT 24.5: prepare-frontend and build-frontend seems to scan classes multiple times #19874

@manolo

Description

@manolo

Description of the bug

prepare-frontend and build-frontend scan classes multiple times, and it probably causes wasting some seconds during the build


mvn clean package -Pproduction

[INFO] --- vaadin-maven-plugin:24.5.0.alpha14:prepare-frontend (default) @ bakery-app-starter-flow-spring ---
[INFO] Reflections took 1569 ms to scan 197 urls, producing 10632 keys and 56187 values
[INFO] Reflections took 1236 ms to scan 197 urls, producing 10632 keys and 56187 values
[INFO] Reflections took 1275 ms to scan 197 urls, producing 10632 keys and 56187 values
[INFO] Visited 120 classes. Took 358 ms.
[INFO] Copying frontend resources from jar files ...
[INFO] Visited 201 resources. Took 291 ms.

...
[INFO] --- vaadin-maven-plugin:24.5.0.alpha14:build-frontend (default) @ bakery-app-starter-flow-spring ---
[INFO] Reflections took 1252 ms to scan 197 urls, producing 10632 keys and 56187 values
[INFO] Reflections took 1135 ms to scan 197 urls, producing 10632 keys and 56187 values
[INFO] Scanning classes to find frontend configurations and dependencies...
[INFO] Visited 7475 classes. Took 7552 ms.

Expected behavior

classes are visited once per goal

Minimal reproducible example

Download and compile bakery-app-starter-flow-spring

Versions

  • Vaadin / Flow version: 24.5.0.alpha

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    ✅ Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions