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
- 
Constructor SummaryConstructorsConstructorDescriptionPluginDescriptor(PluginDescriptor original) PluginDescriptor(PluginDescriptor original) 
- 
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 Stringorg.eclipse.aether.graph.DependencyNodestatic 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) voidsetDependencyNode(org.eclipse.aether.graph.DependencyNode dependencyNode) 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()
- 
PluginDescriptor
- 
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
- 
getDependencyNodepublic org.eclipse.aether.graph.DependencyNode getDependencyNode()
- 
setDependencyNodepublic void setDependencyNode(org.eclipse.aether.graph.DependencyNode dependencyNode) 
- 
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
- 
getLifecycleMapping- Throws:
- IOException
- XMLStreamException
 
- 
getLifecycleMappings- Throws:
- IOException
- XMLStreamException
 
- 
cloneCreates a shallow copy of this plugin descriptor.
- 
addMojos- Throws:
- DuplicateMojoDescriptorException
 
- 
getPluginDescriptorV4
 
-