Class Archetype
java.lang.Object
org.apache.maven.archetype.catalog.Archetype
- All Implemented Interfaces:
Serializable
Information to point to an Archetype referenced in the catalog.
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod addGoal.voidaddProperty(String key, String value) Method addProperty.booleanGet the artifactId of the archetype.Get the description of the archetype.getGoals()Method getGoals.Get the groupId of the archetype.Method getProperties.Get the URL of the repository where to find the archetype.Get the version of the archetype.inthashCode()voidremoveGoal(String string) Method removeGoal.voidsetArtifactId(String artifactId) Set the artifactId of the archetype.voidsetDescription(String description) Set the description of the archetype.voidSet goals to execute after the creation of the project.voidsetGroupId(String groupId) Set the groupId of the archetype.voidsetProperties(Properties properties) Set properties that will be used during the execution of addition goals after the creation of the project.voidsetRepository(String repository) Set the URL of the repository where to find the archetype.voidsetVersion(String version) Set the version of the archetype.toString()
-
Field Details
-
groupId
The groupId of the archetype. -
artifactId
The artifactId of the archetype. -
version
The version of the archetype.RELEASEis a valid version. -
repository
Deprecated.The URL of the repository where to find the archetype. When omitted, the archetype is searched for in the repository where the catalog comes from. -
description
The description of the archetype. -
goals
-
properties
Field properties.
-
-
Constructor Details
-
Archetype
public Archetype()
-
-
Method Details
-
addGoal
-
addProperty
-
getArtifactId
-
getDescription
-
getGoals
-
getGroupId
-
getProperties
-
getRepository
Get the URL of the repository where to find the archetype. When omitted, the archetype is searched for in the repository where the catalog comes from.- Returns:
- String
-
getVersion
Get the version of the archetype.RELEASEis a valid version.- Returns:
- String
-
removeGoal
-
setArtifactId
Set the artifactId of the archetype.- Parameters:
artifactId- a artifactId object.
-
setDescription
Set the description of the archetype.- Parameters:
description- a description object.
-
setGoals
-
setGroupId
Set the groupId of the archetype.- Parameters:
groupId- a groupId object.
-
setProperties
Set properties that will be used during the execution of addition goals after the creation of the project.- Parameters:
properties- a properties object.
-
setRepository
Set the URL of the repository where to find the archetype. When omitted, the archetype is searched for in the repository where the catalog comes from.- Parameters:
repository- a repository object.
-
setVersion
Set the version of the archetype.RELEASEis a valid version.- Parameters:
version- a version object.
-
toString
-
hashCode
-
equals
-