I’m trying to pacakage flow application based on spring boot for production (in single jar). Got it working in the debug mode, however when setting production mode to true I got error (vaadin.productionMode=true in application.properties):
“Failed to find the bundle manifest file ‘frontend://vaadin-flow-bundle-manifest.json’ in the servlet context for ‘ES6’ browsers. If you are running a dev-mode servlet container in maven e.g. jetty:run change it to jetty:run-exploded. If you are not compiling frontend resources, include the ‘vaadin-maven-plugin’ in your build script. Otherwise, you can skip this error either by disabling production mode, or by setting the servlet parameter ‘original.frontend.resources=true’.”
[INFO]
Logging initialized @89435ms to org.eclipse.jetty.util.log.Slf4jLog
[INFO]
[INFO]
BUILD FAILURE
[INFO]
[INFO]
Total time: 01:28 min
[INFO]
Finished at: 2019-02-12T11:54:19+01:00
[INFO]
[ERROR]
Failed to execute goal org.eclipse.jetty:jetty-maven-plugin:9.4.12.v20180830:run (default-cli) on project my-starter-project: Unable to parse configuration of mojo org.eclipse.jetty:jetty-maven-plugin:9.4.12.v20180830:run for parameter resourceBases: Cannot set ‘resourceBases’ in class org.eclipse.jetty.maven.plugin.JettyWebAppContext: InvocationTargetException: NullPointerException → [Help 1]
No luck with css with jar also. 404…
Same with deployment on Tomcat.
Also, that sample suggest running mvn jetty:run -Pproduction-mode, that is not what people usually want (you don’t want to build SW in deployment).