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:
-
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()
-
Constructor Details
-
Archetype
public Archetype()
-
-
Method Details
-
addGoal
Method addGoal.- Parameters:
string- a string object.
-
addProperty
Method addProperty.- Parameters:
key- a key object.value- a value object.
-
getArtifactId
Get the artifactId of the archetype.- Returns:
- String
-
getDescription
Get the description of the archetype.- Returns:
- String
-
getGoals
Method getGoals.- Returns:
- List
-
getGroupId
Get the groupId of the archetype.- Returns:
- String
-
getProperties
Method getProperties.- Returns:
- Properties
-
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
Method removeGoal.- Parameters:
string- a string object.
-
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
Set goals to execute after the creation of the project.- Parameters:
goals- a goals object.
-
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
public int hashCode() -
equals
-