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.
Mojo Attributes:
Name | Type | 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 . |
Name | Type | Description |
---|---|---|
archetype | Archetype |
Used to create the Archetype specified by the groupId, artifactId, and version from the remote repository. |
artifactId | String |
The Artifact Id of the project to be build. |
artifactRepositoryFactory | ArtifactRepositoryFactory |
Used to create ArtifactRepository objects given the urls of the remote repositories. |
basedir | String |
No description. Default value is ${user.dir} . |
defaultArtifactRepositoryLayout | ArtifactRepositoryLayout |
Determines whether the layout is legacy or not. |
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. |
Used to create the Archetype specified by the groupId, artifactId, and version from the remote repository.
org.apache.maven.archetype.Archetype
No
java.lang.String
Yes
${archetypeArtifactId}
maven-archetype-quickstart
java.lang.String
Yes
${archetypeGroupId}
org.apache.maven.archetypes
java.lang.String
Yes
${archetypeVersion}
RELEASE
java.lang.String
No
${artifactId}
org.apache.maven.artifact.repository.ArtifactRepositoryFactory
No
java.lang.String
No
${basedir}
${user.dir}
org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout
No
java.lang.String
No
${groupId}
org.apache.maven.artifact.repository.ArtifactRepository
Yes
${localRepository}
java.lang.String
No
${packageName}
java.util.List
Yes
${project.remoteArtifactRepositories}
org.apache.maven.project.MavenProject
No
${project}
java.lang.String
No
${remoteRepositories}
java.lang.String
Yes
${version}
1.0-SNAPSHOT