Overview of Maven Archetypes

Vaadin currently offers the following Maven archetypes for different kinds of projects:

vaadin-archetype-application

This is a single-module project for simple applications. It is good for quick demos and trying out Vaadin Framework. It is also useful when you are experienced with the framework and want to build all the aspects of the application yourself.

vaadin-archetype-application-multimodule

A complete Vaadin Framework application development setup. It features separate production and development profiles.

vaadin-archetype-application-example

An example CRUD web application using multi-module project setup.

vaadin-archetype-widget

A multi-module project for a new Vaadin Framework add-on. It has two modules: one for the add-on and another for a demo application.

vaadin-archetype-liferay-portlet

A portlet development setup for the open-source Liferay portal.

All archetype versions follow the framework version numbers (like 8.3.3) and use the groupId com.vaadin. For example to generate a new application project in batch mode using version:

  1. mvn -B archetype:generate \
  2. -DarchetypeGroupId=com.vaadin \
  3. -DarchetypeArtifactId=vaadin-archetype-application \
  4. -DarchetypeVersion=8.3.3 \
  5. -DgroupId=org.test \
  6. -DartifactId=vaadin-app \
  7. -Dversion=1.0-SNAPSHOT