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.ArchetypeNojava.lang.StringYes${archetypeArtifactId}maven-archetype-quickstartjava.lang.StringYes${archetypeGroupId}org.apache.maven.archetypesjava.lang.StringYes${archetypeVersion}RELEASEjava.lang.StringNo${artifactId}org.apache.maven.artifact.repository.ArtifactRepositoryFactoryNojava.lang.StringNo${basedir}${user.dir}org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayoutNojava.lang.StringNo${groupId}org.apache.maven.artifact.repository.ArtifactRepositoryYes${localRepository}java.lang.StringNo${packageName}java.util.ListYes${project.remoteArtifactRepositories}org.apache.maven.project.MavenProjectNo${project}java.lang.StringNo${remoteRepositories}java.lang.StringYes${version}1.0-SNAPSHOT