...
Code Block |
---|
mvn archetype:generate -B \
-DgroupId=tutorial \
-DartifactId=tutorial \
-DarchetypeGroupId=org.apache.struts \
-DarchetypeArtifactId=struts2-archetype-blank \
-DarchetypeVersion=2.1.6
|
Archetype Parameters
The -B
option runs archetype:generate
in batch mode; it avoids a prompt to confirm our settings.
Parameter | 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 |
| (Optional) A list of remote repositories that contain the archetype. |
...