...
From a working directory for your project, run the following command:
Code Block |
---|
mvn archetype:create generate -DgroupId=tutorial \ -DartifactId=tutorial \ -DarchetypeGroupId=org.apache.struts \ -DarchetypeArtifactId=struts2-archetype-starterblank \ -DarchetypeVersion=2.0.11.2 |
This table describes the parameters used above:
1.6
|
Archetype Parameters
Parameter 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 project will be created a sub-directory named after this parameter. |
| The group id of the archetype. Will always be |
| The id of the archetype |
| The version of the archetype |
| (Optional) The base Java package to use for generated source code. Defaults to |
| A list of remote repositories that contain the archetype. If deployed to the standard Maven repository or locally, this is optional |
...