Class Archetype

java.lang.Object
org.apache.maven.archetype.catalog.Archetype
All Implemented Interfaces:
Serializable

public class Archetype extends Object implements Serializable
Information to point to an Archetype referenced in the catalog.
Version:
$Revision$ $Date$
See Also:
  • Constructor Details

    • Archetype

      public Archetype()
  • Method Details

    • addGoal

      public void addGoal(String string)
      Method addGoal.
      Parameters:
      string - a string object.
    • addProperty

      public void addProperty(String key, String value)
      Method addProperty.
      Parameters:
      key - a key object.
      value - a value object.
    • getArtifactId

      public String getArtifactId()
      Get the artifactId of the archetype.
      Returns:
      String
    • getDescription

      public String getDescription()
      Get the description of the archetype.
      Returns:
      String
    • getGoals

      public List<String> getGoals()
      Method getGoals.
      Returns:
      List
    • getGroupId

      public String getGroupId()
      Get the groupId of the archetype.
      Returns:
      String
    • getProperties

      public Properties getProperties()
      Method getProperties.
      Returns:
      Properties
    • getRepository

      public 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 String getVersion()
      Get the version of the archetype. RELEASE is a valid version.
      Returns:
      String
    • removeGoal

      public void removeGoal(String string)
      Method removeGoal.
      Parameters:
      string - a string object.
    • setArtifactId

      public void setArtifactId(String artifactId)
      Set the artifactId of the archetype.
      Parameters:
      artifactId - a artifactId object.
    • setDescription

      public void setDescription(String description)
      Set the description of the archetype.
      Parameters:
      description - a description object.
    • setGoals

      public void setGoals(List<String> goals)
      Set goals to execute after the creation of the project.
      Parameters:
      goals - a goals object.
    • setGroupId

      public void setGroupId(String groupId)
      Set the groupId of the archetype.
      Parameters:
      groupId - a groupId object.
    • setProperties

      public void setProperties(Properties properties)
      Set properties that will be used during the execution of addition goals after the creation of the project.
      Parameters:
      properties - a properties object.
    • setRepository

      public void setRepository(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 - a repository object.
    • setVersion

      public void setVersion(String version)
      Set the version of the archetype. RELEASE is a valid version.
      Parameters:
      version - a version object.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object