I just finished migrating my Spring Boot 2.1.6 / Vaadin 13 app ro 14.0.0.rc9, only using polymer3/npm (using https://vaadin.com/tutorials/migrate-from-bower-to-npm-for-vaadin-14+ as guide, no compatibilityMode).
The app works as expected and also the new Vaadin 14 features work as expected.
However, starting the app (using mvn spring-boot:run
is VERY slow. Here the problem:
11:58:41.346 INFO Initializing Spring embedded WebApplicationContext - org.apache.catalina.core.ContainerBase.[Tomcat]
.[localhost]
.
[/]
11:58:41.346 INFO Root WebApplicationContext: initialization completed in 1535 ms - org.springframework.web.context.ContextLoader
... now the processed does not show any logging for about a minute, suddenly it continues ....
11:59:48.564 INFO Starting dev-mode updaters in /home/rmuller/workspace/boot-vaadin folder. - com.vaadin.flow.server.startup.DevModeInitializer
11:59:48.570 INFO Scanning classes to find frontend configurations and dependencies... - dev-updater
11:59:50.130 INFO Visited 2166 classes. Took 1559 ms. - dev-updater
11:59:50.159 INFO Skipping `npm install`. - dev-updater
11:59:50.159 INFO Copying frontend resources from jar files ... - dev-updater
11:59:50.167 INFO Visited 9 jar files. Took 7 ms. - dev-updater
11:59:50.167 INFO Copying project local frontend resources. - com.vaadin.flow.server.frontend.TaskCopyLocalFrontendFiles
11:59:50.169 INFO Copying frontend directory completed. - com.vaadin.flow.server.frontend.TaskCopyLocalFrontendFiles
11:59:50.170 WARN Use the './' prefix for files in JAR files: 'flow-component-renderer.js', please update your component. - dev-updater
...
----------------- Frontend compiled successfully. ----------------- - dev-webpack
...
11:59:55.633 INFO Started Application in 76.236 seconds (JVM running for 77.185)
77 seconds instead of 4 when using Vaadin 13. Seems it is compiling the frontend every time?
What’s going wrong here?