Constructor and Description |
---|
PluginDescriptor() |
Modifier and Type | Method and Description |
---|---|
void |
addMojo(MojoDescriptor mojoDescriptor) |
PluginDescriptor |
clone()
Creates a shallow copy of this plugin descriptor.
|
static String |
constructPluginKey(String groupId,
String artifactId,
String version) |
boolean |
equals(Object object) |
String |
getArtifactId() |
Map<String,Artifact> |
getArtifactMap()
The map of artifacts accessible by the versionlessKey, i.e.
|
List<Artifact> |
getArtifacts()
Gets the artifacts that make up the plugin's class realm, excluding artifacts shadowed by the Maven core realm
like
maven-project . |
org.codehaus.plexus.classworlds.realm.ClassRealm |
getClassRealm() |
static String |
getDefaultPluginArtifactId(String id) |
static String |
getDefaultPluginGroupId() |
String |
getDescription() |
String |
getGoalPrefix() |
static String |
getGoalPrefixFromArtifactId(String artifactId)
Parse maven-...-plugin.
|
String |
getGroupId() |
String |
getId() |
Set<Artifact> |
getIntroducedDependencyArtifacts() |
Lifecycle |
getLifecycleMapping(String lifecycleId) |
MojoDescriptor |
getMojo(String goal) |
List<MojoDescriptor> |
getMojos() |
String |
getName() |
Plugin |
getPlugin() |
Artifact |
getPluginArtifact() |
String |
getPluginLookupKey() |
String |
getRequiredMavenVersion() |
String |
getSource() |
String |
getVersion() |
int |
hashCode() |
boolean |
isInheritedByDefault() |
void |
setArtifactId(String artifactId) |
void |
setArtifacts(List<Artifact> artifacts) |
void |
setClassRealm(org.codehaus.plexus.classworlds.realm.ClassRealm classRealm) |
void |
setDescription(String description) |
void |
setGoalPrefix(String goalPrefix) |
void |
setGroupId(String groupId) |
void |
setInheritedByDefault(boolean inheritedByDefault) |
void |
setIntroducedDependencyArtifacts(Set<Artifact> introducedDependencyArtifacts) |
void |
setName(String name) |
void |
setPlugin(Plugin plugin) |
void |
setPluginArtifact(Artifact pluginArtifact) |
void |
setRequiredMavenVersion(String requiredMavenVersion) |
void |
setSource(String source) |
void |
setVersion(String version) |
public List<MojoDescriptor> getMojos()
public void addMojo(MojoDescriptor mojoDescriptor) throws DuplicateMojoDescriptorException
DuplicateMojoDescriptorException
public String getGroupId()
public void setGroupId(String groupId)
public String getArtifactId()
public void setArtifactId(String artifactId)
public static String constructPluginKey(String groupId, String artifactId, String version)
public String getPluginLookupKey()
public String getId()
public static String getDefaultPluginGroupId()
public static String getGoalPrefixFromArtifactId(String artifactId)
public String getGoalPrefix()
public void setGoalPrefix(String goalPrefix)
public void setVersion(String version)
public String getVersion()
public void setSource(String source)
public String getSource()
public boolean isInheritedByDefault()
public void setInheritedByDefault(boolean inheritedByDefault)
public List<Artifact> getArtifacts()
maven-project
.null
.public Map<String,Artifact> getArtifactMap()
null
getArtifacts()
public MojoDescriptor getMojo(String goal)
public void setClassRealm(org.codehaus.plexus.classworlds.realm.ClassRealm classRealm)
public org.codehaus.plexus.classworlds.realm.ClassRealm getClassRealm()
public void setIntroducedDependencyArtifacts(Set<Artifact> introducedDependencyArtifacts)
public void setName(String name)
public String getName()
public void setDescription(String description)
public String getDescription()
public void setRequiredMavenVersion(String requiredMavenVersion)
public String getRequiredMavenVersion()
public void setPlugin(Plugin plugin)
public Plugin getPlugin()
public Artifact getPluginArtifact()
public void setPluginArtifact(Artifact pluginArtifact)
public Lifecycle getLifecycleMapping(String lifecycleId) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
public PluginDescriptor clone()
Copyright © 2001–2017 The Apache Software Foundation. All rights reserved.