Class Archetype
- java.lang.Object
-
- org.apache.maven.archetype.catalog.Archetype
-
- All Implemented Interfaces:
java.io.Serializable
public class Archetype extends java.lang.Object implements java.io.SerializableInformations to point to an Archetype referenced in the catalog.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringartifactIdThe artifactId of the archetype.private java.lang.StringdescriptionThe description of the archetype.private java.util.List<java.lang.String>goalsField goals.private java.lang.StringgroupIdThe groupId of the archetype.private java.util.PropertiespropertiesField properties.private java.lang.StringrepositoryDeprecated.private java.lang.StringversionThe version of the archetype.
-
Constructor Summary
Constructors Constructor Description Archetype()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGoal(java.lang.String string)Method addGoal.voidaddProperty(java.lang.String key, java.lang.String value)Method addProperty.booleanequals(java.lang.Object object)java.lang.StringgetArtifactId()Get the artifactId of the archetype.java.lang.StringgetDescription()Get the description of the archetype.java.util.List<java.lang.String>getGoals()Method getGoals.java.lang.StringgetGroupId()Get the groupId of the archetype.java.util.PropertiesgetProperties()Method getProperties.java.lang.StringgetRepository()Get the URL of the repository where to find the archetype.java.lang.StringgetVersion()Get the version of the archetype.inthashCode()voidremoveGoal(java.lang.String string)Method removeGoal.voidsetArtifactId(java.lang.String artifactId)Set the artifactId of the archetype.voidsetDescription(java.lang.String description)Set the description of the archetype.voidsetGoals(java.util.List<java.lang.String> goals)Set goals to execute after the creation of the project.voidsetGroupId(java.lang.String groupId)Set the groupId of the archetype.voidsetProperties(java.util.Properties properties)Set properties that will be used during the execution of addition goals after the creation of the project.voidsetRepository(java.lang.String repository)Set the URL of the repository where to find the archetype.voidsetVersion(java.lang.String version)Set the version of the archetype.java.lang.StringtoString()
-
-
-
Field Detail
-
groupId
private java.lang.String groupId
The groupId of the archetype.
-
artifactId
private java.lang.String artifactId
The artifactId of the archetype.
-
version
private java.lang.String version
The version of the archetype.RELEASEis a valid version.
-
repository
@Deprecated private java.lang.String 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
private java.lang.String description
The description of the archetype.
-
goals
private java.util.List<java.lang.String> goals
Field goals.
-
properties
private java.util.Properties properties
Field properties.
-
-
Method Detail
-
addGoal
public void addGoal(java.lang.String string)
Method addGoal.- Parameters:
string-
-
addProperty
public void addProperty(java.lang.String key, java.lang.String value)Method addProperty.- Parameters:
key-value-
-
getArtifactId
public java.lang.String getArtifactId()
Get the artifactId of the archetype.- Returns:
- String
-
getDescription
public java.lang.String getDescription()
Get the description of the archetype.- Returns:
- String
-
getGoals
public java.util.List<java.lang.String> getGoals()
Method getGoals.- Returns:
- List
-
getGroupId
public java.lang.String getGroupId()
Get the groupId of the archetype.- Returns:
- String
-
getProperties
public java.util.Properties getProperties()
Method getProperties.- Returns:
- Properties
-
getRepository
public java.lang.String 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
public java.lang.String getVersion()
Get the version of the archetype.RELEASEis a valid version.- Returns:
- String
-
removeGoal
public void removeGoal(java.lang.String string)
Method removeGoal.- Parameters:
string-
-
setArtifactId
public void setArtifactId(java.lang.String artifactId)
Set the artifactId of the archetype.- Parameters:
artifactId-
-
setDescription
public void setDescription(java.lang.String description)
Set the description of the archetype.- Parameters:
description-
-
setGoals
public void setGoals(java.util.List<java.lang.String> goals)
Set goals to execute after the creation of the project.- Parameters:
goals-
-
setGroupId
public void setGroupId(java.lang.String groupId)
Set the groupId of the archetype.- Parameters:
groupId-
-
setProperties
public void setProperties(java.util.Properties properties)
Set properties that will be used during the execution of addition goals after the creation of the project.- Parameters:
properties-
-
setRepository
public void setRepository(java.lang.String repository)
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-
-
setVersion
public void setVersion(java.lang.String version)
Set the version of the archetype.RELEASEis a valid version.- Parameters:
version-
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
-