Class PluginDescriptor
java.lang.Object
org.codehaus.plexus.component.repository.ComponentSetDescriptor
org.apache.maven.plugin.descriptor.PluginDescriptor
- All Implemented Interfaces:
- Cloneable
public class PluginDescriptor
extends org.codehaus.plexus.component.repository.ComponentSetDescriptor
implements Cloneable
- Author:
- Jason van Zyl
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddMojo(MojoDescriptor mojoDescriptor) voidaddMojos(List<MojoDescriptor> mojos) clone()Creates a shallow copy of this plugin descriptor.static StringconstructPluginKey(String groupId, String artifactId, String version) booleanThe map of artifacts accessible by the versionlessKey, i.e.Gets the artifacts that make up the plugin's class realm, excluding artifacts shadowed by the Maven core realm likemaven-project.org.codehaus.plexus.classworlds.realm.ClassRealmstatic Stringstatic Stringstatic StringgetGoalPrefixFromArtifactId(String artifactId) Parse maven-...-plugin.getId()getLifecycleMapping(String lifecycleId) getMojos()getName()inthashCode()booleanvoidsetArtifactId(String artifactId) voidsetArtifacts(List<Artifact> artifacts) voidsetClassRealm(org.codehaus.plexus.classworlds.realm.ClassRealm classRealm) voidsetDescription(String description) voidsetGoalPrefix(String goalPrefix) voidsetGroupId(String groupId) voidsetInheritedByDefault(boolean inheritedByDefault) voidsetIntroducedDependencyArtifacts(Set<Artifact> introducedDependencyArtifacts) voidvoidvoidsetPluginArtifact(Artifact pluginArtifact) voidsetRequiredJavaVersion(String requiredJavaVersion) voidsetRequiredMavenVersion(String requiredMavenVersion) voidvoidsetVersion(String version) Methods inherited from class org.codehaus.plexus.component.repository.ComponentSetDescriptoraddComponentDescriptor, addDependency, getComponents, getDependencies, isIsolatedRealm, setComponents, setDependencies, setId, setIsolatedRealm, toString
- 
Constructor Details- 
PluginDescriptorpublic PluginDescriptor()
 
- 
- 
Method Details- 
getMojos
- 
addMojo- Throws:
- DuplicateMojoDescriptorException
 
- 
getGroupId
- 
setGroupId
- 
getArtifactId
- 
setArtifactId
- 
constructPluginKey
- 
getPluginLookupKey
- 
getId
- 
getDefaultPluginArtifactId
- 
getDefaultPluginGroupId
- 
getGoalPrefixFromArtifactIdParse maven-...-plugin. TODO move to plugin-tools-api as a default only
- 
getGoalPrefix
- 
setGoalPrefix
- 
setVersion
- 
getVersion
- 
setSource
- 
getSource
- 
isInheritedByDefaultpublic boolean isInheritedByDefault()
- 
setInheritedByDefaultpublic void setInheritedByDefault(boolean inheritedByDefault) 
- 
getArtifactsGets the artifacts that make up the plugin's class realm, excluding artifacts shadowed by the Maven core realm likemaven-project.- Returns:
- The plugin artifacts, never null.
 
- 
setArtifacts
- 
getArtifactMapThe map of artifacts accessible by the versionlessKey, i.e. groupId:artifactId- Returns:
- a Map of artifacts, never null
- See Also:
 
- 
equals
- 
hashCodepublic int hashCode()
- 
getMojo
- 
setClassRealmpublic void setClassRealm(org.codehaus.plexus.classworlds.realm.ClassRealm classRealm) 
- 
getClassRealmpublic org.codehaus.plexus.classworlds.realm.ClassRealm getClassRealm()
- 
setIntroducedDependencyArtifacts
- 
getIntroducedDependencyArtifacts
- 
setName
- 
getName
- 
setDescription
- 
getDescription
- 
setRequiredMavenVersion
- 
getRequiredMavenVersion
- 
setRequiredJavaVersion
- 
getRequiredJavaVersion
- 
setPlugin
- 
getPlugin
- 
getPluginArtifact
- 
setPluginArtifact
- 
getLifecycleMappingpublic Lifecycle getLifecycleMapping(String lifecycleId) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException - Throws:
- IOException
- org.codehaus.plexus.util.xml.pull.XmlPullParserException
 
- 
cloneCreates a shallow copy of this plugin descriptor.
- 
addMojos- Throws:
- DuplicateMojoDescriptorException
 
 
-