Getting Started

Maven Build

linkki uses Vaadin and thus needs to configure the build as described in the Vaadin documentation.

How to configure the vaadin-maven-plugin?

  • prepare-frontend is automatically used with build-frontend and should be omitted.

  • clean-frontend can be used when maintaining multiple versions of Vaadin, e.g., in different hotfix branches. Although it comes with longer build times, this will clean up any incompatible frontend dependency artifacts and fetch them anew.

How to build from console

  • mvn clean package and mvn clean install will create a production build and omit any development dependencies that are declared optional. (Note that this only applies for spring projects.)

How to start in development mode?

  • Start the main application in your IDE

  • Use mvn spring-boot:run from the command line

How to start in production mode?

Build the application via mvn clean package. Then start the generated JAR file using one of the following methods:

How do I determine if the application is running in development or production mode?

  • Server console: On start, the application will write to the console in which mode it was started.

  • Browser console: In production mode, you should see less log entries. In particular, you should not see any logs regarding server round trips and how long each took.