flow-spring-tutorial - run as jar

I would like to run https://github.com/vaadin/flow-spring-tutorial as Spring Boot JAR project. Like we did in V8 + Spring Boot 1.5.
Steps :

  • clone project from github
  • mvn package
  • java -jar ./target/flow.tutorial-1.0.0-SNAPSHOT.jar

And then I get an error :

no main manifest attribute, in ./target/flow.tutorial-1.0.0-SNAPSHOT.jar


I check “Full Stack App with Spring” for V8 and V10.

  1. V8 - https://vaadin.com/docs/v8/bakeryfw8/running-building-packaging.html
    “To build the project, the standard mvn install command can be used. This will produce a deployable, self containing jar in the target package”

  2. V10 - https://vaadin.com/docs/v10/bakeryflow/running-building-packaging.html
    “After production WAR file is ready it can be deployed on the web container, e.g. Apache Tomcat, WildFly, Jetty.”

Why V10 application are not any more deployable as JAR files? For us this is one of the major feature of Spring Boot - we don’t need app server for every application and development / product environment is the some.

See https://vaadin.com/forum/thread/17108606/vaadin-flow-with-spring-mvc-in-a-fat-jar for some issue.