Fork me on GitHub

archetype:create

Full name:

org.apache.maven.plugins:maven-archetype-plugin:2.3: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.
User property is: archetypeArtifactId.
archetypeGroupId String - The Archetype Group Id to be used.
Default value is: org.apache.maven.archetypes.
User property is: archetypeGroupId.
archetypeVersion String - The Archetype Version to be used.
Default value is: RELEASE.
User property is: archetypeVersion.
localRepository ArtifactRepository - Maven's local repository.
User property is: localRepository.
pomRemoteRepositories List - The remote repositories available for discovering dependencies and extensions as indicated by the POM.
Default value is: project.remoteArtifactRepositories.
project MavenProject - The project to be created an archetype of.
Default value is: project.
version String - The Version of the project to be build.
Default value is: 1.0-SNAPSHOT.
User property is: version.

Optional Parameters

Name Type Since Description
artifactId String - The Artifact Id of the project to be build.
User property is: artifactId.
basedir String - (no description)
Default value is: ${user.dir}.
User property is: basedir.
groupId String - The Group Id of the project to be build.
User property is: groupId.
packageName String - The Package Name of the project to be build.
User property is: packageName.
remoteRepositories String - Other remote repositories available for discovering dependencies and extensions.
User property is: remoteRepositories.

Parameter Details

archetypeArtifactId:

The Archetype Artifact Id to be used.
  • Type: java.lang.String
  • Required: Yes
  • User Property: archetypeArtifactId
  • Default: maven-archetype-quickstart

archetypeGroupId:

The Archetype Group Id to be used.
  • Type: java.lang.String
  • Required: Yes
  • User Property: archetypeGroupId
  • Default: org.apache.maven.archetypes

archetypeVersion:

The Archetype Version to be used.
  • Type: java.lang.String
  • Required: Yes
  • User Property: archetypeVersion
  • Default: RELEASE

artifactId:

The Artifact Id of the project to be build.
  • Type: java.lang.String
  • Required: No
  • User Property: artifactId

basedir:

(no description)
  • Type: java.lang.String
  • Required: No
  • User Property: basedir
  • Default: ${user.dir}

groupId:

The Group Id of the project to be build.
  • Type: java.lang.String
  • Required: No
  • User Property: groupId

localRepository:

Maven's local repository.
  • Type: org.apache.maven.artifact.repository.ArtifactRepository
  • Required: Yes
  • User Property: localRepository

packageName:

The Package Name of the project to be build.
  • Type: java.lang.String
  • Required: No
  • User Property: packageName

pomRemoteRepositories:

The remote repositories available for discovering dependencies and extensions as indicated by the POM.
  • Type: java.util.List
  • Required: Yes
  • Default: project.remoteArtifactRepositories

project:

The project to be created an archetype of.
  • Type: org.apache.maven.project.MavenProject
  • Required: Yes
  • Default: project

remoteRepositories:

Other remote repositories available for discovering dependencies and extensions.
  • Type: java.lang.String
  • Required: No
  • User Property: remoteRepositories

version:

The Version of the project to be build.
  • Type: java.lang.String
  • Required: Yes
  • User Property: version
  • Default: 1.0-SNAPSHOT