Apache Struts 2 Documentation > Home > Guides > Core Developers Guide > Struts Maven Archetype |
The Struts Maven Archetype creates a working web application template.
From a working directory for your project:
mvn archetype:create -DgroupId=tutorial \ -DartifactId=tutorial \ -DarchetypeGroupId=org.apache.struts \ -DarchetypeArtifactId=struts2-archetype-starter \ -DarchetypeVersion=1.0-SNAPSHOT \
Substitute the name of your project for "tutorial". Substitute your own package name for "org.apache.struts".
The Archetype will create a ready-run Struts project. Just run "mvn install" to build.
mvn install
mvn test
mvn clean
mvn package
mvn initialize
mvn jetty6:run