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-frontendis automatically used withbuild-frontendand should be omitted. -
clean-frontendcan 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 packageandmvn clean installwill 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:runfrom 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:
-
Terminal: Run
java -jar target/<application>.jar. -
IntelliJ: Start the generated JAR file from IntelliJ.
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.