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()Get required Maven version, as defined in plugin's pom.xml since 3.0.2, as defined in plugin.xml since 4.0.0-alpha-3.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) Set required Maven version, as defined in plugin's pom.xml since 3.0.2, as defined in plugin.xml since 4.0.0-alpha-3.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
- 
setRequiredMavenVersionSet required Maven version, as defined in plugin's pom.xml since 3.0.2, as defined in plugin.xml since 4.0.0-alpha-3.- Parameters:
- requiredMavenVersion- Maven version required by the plugin
- Since:
- 3.0.2
 
- 
getRequiredMavenVersionGet required Maven version, as defined in plugin's pom.xml since 3.0.2, as defined in plugin.xml since 4.0.0-alpha-3.- Returns:
- the Maven version required by the plugin
- Since:
- 3.0.2
 
- 
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
 
-