Creating Java EE 7 web app with Maven
1 min readFeb 24, 2015
Want to create a Java EE 7 web application (not a full enterprise app) with Maven?
Easy.
Well. Sort of easy.
mvn -DarchetypeGroupId=org.codehaus.mojo.archetypes -DarchetypeArtifactId=webapp-javaee7 -DarchetypeVersion=1.1 -DarchetypeRepository=http://repo.maven.apache.org/maven2 -DgroupId=org.foobar -DartifactId=MyWebApp -Dversion=1.0-SNAPSHOT -Dpackage=org.foobar.mywebapp -Dbasedir=~/Projects -Darchetype.interactive=false —batch-mode archetype:generate
Remember to replace org.foobar with something else.