Warning |
---|
This page is deprecated and replaced by the Struts 2 Maven Archetypes page. It is being kept (for now) for release note links. |
...
Struts provides several Maven Archetypes that create working applications based on a template.
...
Code Block |
---|
mvn archetype:create -DgroupId=tutorial \ -DartifactId=tutorial \ -DarchetypeGroupId=org.apache.struts \ -DarchetypeArtifactId=struts2-archetype-starter \ -DarchetypeVersion=2.0.11.2-SNAPSHOT \ -DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository |
This table describes the parameters used above:
Name | Description |
---|---|
| The id for the group the application belongs to. Usually is the root package for applications in your company, e.g. com.mycompany |
| The id for the project |
| The base Java package to use for generated source code. Defaults to |
| The group id of the archetype. Will always be |
| The id of the archetype |
| The version of the archetype |
| A list of remote repositories that contain the archetype. If deployed to the standard Maven repository or locally, this is optional |
...