public final class Archetype extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
deletable |
Constructor and Description |
---|
Archetype() |
Archetype(boolean deletable) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
org.apache.maven.artifact.Artifact |
getArtifact()
initially non resolved artifact, need to call resolveArtifacts() before getArtifact().getFile() can be used.
|
String |
getArtifactId() |
String |
getDescription() |
String |
getGroupId() |
String |
getName() |
org.apache.maven.artifact.Artifact |
getPomArtifact()
initially non resolved artifact, need to call resolveArtifacts() before getArtifact().getFile() can be used.
|
String |
getRepository()
optional property.
|
String |
getVersion() |
int |
hashCode() |
Map<String,String> |
loadRequiredProperties()
parses the META-INF/maven/archetype-metadata.xml file within the archetype's jar
to get the additional required properties.
|
void |
resolveArtifacts(AggregateProgressHandle hndl)
resolve the artifacts associated with the archetype (ideally downloads them to the local repository)
|
void |
setArtifactId(String artifactId) |
void |
setDescription(String description) |
void |
setGroupId(String groupId) |
void |
setName(String name) |
void |
setRepository(String repo)
optional property.
|
void |
setVersion(String version) |
String |
toString() |
public String getArtifactId()
public void setArtifactId(String artifactId)
public String getGroupId()
public void setGroupId(String groupId)
public String getVersion()
public void setVersion(String version)
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public void setRepository(String repo)
repo
- public String getRepository()
public org.apache.maven.artifact.Artifact getArtifact()
public org.apache.maven.artifact.Artifact getPomArtifact()
public void resolveArtifacts(AggregateProgressHandle hndl) throws org.apache.maven.artifact.resolver.ArtifactResolutionException, org.apache.maven.artifact.resolver.ArtifactNotFoundException
hndl
- org.apache.maven.artifact.resolver.ArtifactResolutionException
org.apache.maven.artifact.resolver.ArtifactNotFoundException
public Map<String,String> loadRequiredProperties()