https://vaadin.com/book/-/page/getting-started.maven.html
1. Create project from archetype
V7
mvn archetype:generate -DarchetypeGroupId=com.vaadin -DarchetypeArtifactId=vaadin-archetype-application -DarchetypeVersion=7.1.11 -DgroupId=com.bingtimren -DartifactId=mavenSampleVaadinApp -Dversion=1.0 -Dpackaging=war
V8
mvn archetype:generate -DarchetypeGroupId=com.vaadin -DarchetypeArtifactId=vaadin-archetype-application -DarchetypeVersion=8.0.5 -DgroupId=org.test -DartifactId=vaadin-app -Dversion=1.0-SNAPSHOT -DthemeName=mytheme -DuiName=myui -Dpackage=org.test
cd vaadin-app
mvn package jetty:run
2. Package and test
mvn package
mvn jetty:run
Go to http://localhost:8080/project-name and check if it works
3. File -> Import -> Existing Maven Projects
4. Run -> Run as -> Run on server
5. If run on JBOSS / Wildfly servers, add jboss-web.xml to src/main/webapp/WEB-INF/jboss-web.xml
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<context-root>miso-cloud-front</context-root>
</jboss-web>
6. If use Vaadin CDI Plugin Vaadin CDI