archetype:create
Full name:
org.apache.maven.plugins:maven-archetype-plugin:2.1:create
This plugin goal has been deprecated:
Please use the generate mojo instead.
Description:
The archetype creation goal looks for an archetype with a given
groupId, artifactId, and version and retrieves it from the remote
repository. Once the archetype is retrieved, it is then processed
against a set of user parameters to create a working Maven project.
Attributes:
Required Parameters
Name |
Type |
Since |
Description |
archetypeArtifactId |
String |
- |
The Archetype Artifact Id to be used. Default value is: maven-archetype-quickstart. |
archetypeGroupId |
String |
- |
The Archetype Group Id to be used. Default value is: org.apache.maven.archetypes. |
archetypeVersion |
String |
- |
The Archetype Version to be used. Default value is: RELEASE. |
localRepository |
ArtifactRepository |
- |
Maven's local repository.
|
pomRemoteRepositories |
List |
- |
The remote repositories available for discovering dependencies and
extensions as indicated by the POM.
|
version |
String |
- |
The Version of the project to be build. Default value is: 1.0-SNAPSHOT. |
Optional Parameters
Name |
Type |
Since |
Description |
artifactId |
String |
- |
The Artifact Id of the project to be build.
|
basedir |
String |
- |
(no description) Default value is: ${user.dir}. |
groupId |
String |
- |
The Group Id of the project to be build.
|
packageName |
String |
- |
The Package Name of the project to be build.
|
project |
MavenProject |
- |
The project to be created an archetype of.
|
remoteRepositories |
String |
- |
Other remote repositories available for discovering dependencies
and extensions.
|
Parameter Details
archetypeArtifactId:
The Archetype Artifact Id to be used.
- Type: java.lang.String
- Required: Yes
- Expression: ${archetypeArtifactId}
- Default: maven-archetype-quickstart
archetypeGroupId:
The Archetype Group Id to be used.
- Type: java.lang.String
- Required: Yes
- Expression: ${archetypeGroupId}
- Default: org.apache.maven.archetypes
archetypeVersion:
The Archetype Version to be used.
- Type: java.lang.String
- Required: Yes
- Expression: ${archetypeVersion}
- Default: RELEASE
artifactId:
The Artifact Id of the project to be build.
- Type: java.lang.String
- Required: No
- Expression: ${artifactId}
basedir:
(no description)
- Type: java.lang.String
- Required: No
- Expression: ${basedir}
- Default: ${user.dir}
groupId:
The Group Id of the project to be build.
- Type: java.lang.String
- Required: No
- Expression: ${groupId}
localRepository:
Maven's local repository.
- Type: org.apache.maven.artifact.repository.ArtifactRepository
- Required: Yes
- Expression: ${localRepository}
packageName:
The Package Name of the project to be build.
- Type: java.lang.String
- Required: No
- Expression: ${packageName}
pomRemoteRepositories:
The remote repositories available for discovering dependencies and
extensions as indicated by the POM.
- Type: java.util.List
- Required: Yes
- Expression: ${project.remoteArtifactRepositories}
project:
The project to be created an archetype of.
- Type: org.apache.maven.project.MavenProject
- Required: No
- Expression: ${project}
remoteRepositories:
Other remote repositories available for discovering dependencies
and extensions.
- Type: java.lang.String
- Required: No
- Expression: ${remoteRepositories}
version:
The Version of the project to be build.
- Type: java.lang.String
- Required: Yes
- Expression: ${version}
- Default: 1.0-SNAPSHOT