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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Method addGoal.void
addProperty
(String key, String value) Method addProperty.boolean
Get 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.int
hashCode()
void
removeGoal
(String string) Method removeGoal.void
setArtifactId
(String artifactId) Set the artifactId of the archetype.void
setDescription
(String description) Set the description of the archetype.void
Set goals to execute after the creation of the project.void
setGroupId
(String groupId) Set the groupId of the archetype.void
setProperties
(Properties properties) Set properties that will be used during the execution of addition goals after the creation of the project.void
setRepository
(String repository) Set the URL of the repository where to find the archetype.void
setVersion
(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.RELEASE
is 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.RELEASE
is a valid version.- Parameters:
version
- a version object.
-
toString
-
hashCode
public int hashCode() -
equals
-