Package org.apache.maven.tools.plugin
Class ExtendedPluginDescriptor
- java.lang.Object
-
- org.codehaus.plexus.component.repository.ComponentSetDescriptor
-
- org.apache.maven.plugin.descriptor.PluginDescriptor
-
- org.apache.maven.tools.plugin.ExtendedPluginDescriptor
-
- All Implemented Interfaces:
Cloneable
public class ExtendedPluginDescriptor extends org.apache.maven.plugin.descriptor.PluginDescriptor
Extensions toPluginDescriptor
not supported by Maven 3.2.5. This is a wrapper around an existing PluginDescriptor.
-
-
Constructor Summary
Constructors Constructor Description ExtendedPluginDescriptor(org.apache.maven.plugin.descriptor.PluginDescriptor delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMojo(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor)
org.apache.maven.plugin.descriptor.PluginDescriptor
clone()
boolean
equals(Object obj)
String
getArtifactId()
Map<String,org.apache.maven.artifact.Artifact>
getArtifactMap()
List<org.apache.maven.artifact.Artifact>
getArtifacts()
org.codehaus.plexus.classworlds.realm.ClassRealm
getClassRealm()
String
getDescription()
String
getGoalPrefix()
String
getGroupId()
String
getId()
Set<org.apache.maven.artifact.Artifact>
getIntroducedDependencyArtifacts()
org.apache.maven.plugin.lifecycle.Lifecycle
getLifecycleMapping(String lifecycleId)
org.apache.maven.plugin.descriptor.MojoDescriptor
getMojo(String goal)
List<org.apache.maven.plugin.descriptor.MojoDescriptor>
getMojos()
String
getName()
org.apache.maven.model.Plugin
getPlugin()
org.apache.maven.artifact.Artifact
getPluginArtifact()
String
getPluginLookupKey()
String
getRequiredJavaVersion()
String
getRequiredMavenVersion()
String
getSource()
String
getVersion()
int
hashCode()
boolean
isInheritedByDefault()
void
setArtifactId(String artifactId)
void
setArtifacts(List<org.apache.maven.artifact.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<org.apache.maven.artifact.Artifact> introducedDependencyArtifacts)
void
setName(String name)
void
setPlugin(org.apache.maven.model.Plugin plugin)
void
setPluginArtifact(org.apache.maven.artifact.Artifact pluginArtifact)
void
setRequiredJavaVersion(String requiredJavaVersion)
void
setRequiredMavenVersion(String requiredMavenVersion)
void
setSource(String source)
void
setVersion(String version)
-
Methods inherited from class org.apache.maven.plugin.descriptor.PluginDescriptor
constructPluginKey, getDefaultPluginArtifactId, getDefaultPluginGroupId, getGoalPrefixFromArtifactId
-
-
-
-
Constructor Detail
-
ExtendedPluginDescriptor
public ExtendedPluginDescriptor(org.apache.maven.plugin.descriptor.PluginDescriptor delegate)
-
-
Method Detail
-
setRequiredJavaVersion
public void setRequiredJavaVersion(String requiredJavaVersion)
-
getRequiredJavaVersion
public String getRequiredJavaVersion()
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
getMojos
public List<org.apache.maven.plugin.descriptor.MojoDescriptor> getMojos()
- Overrides:
getMojos
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
addMojo
public void addMojo(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor) throws org.apache.maven.plugin.descriptor.DuplicateMojoDescriptorException
- Overrides:
addMojo
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
- Throws:
org.apache.maven.plugin.descriptor.DuplicateMojoDescriptorException
-
getGroupId
public String getGroupId()
- Overrides:
getGroupId
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
setGroupId
public void setGroupId(String groupId)
- Overrides:
setGroupId
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
getArtifactId
public String getArtifactId()
- Overrides:
getArtifactId
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
setArtifactId
public void setArtifactId(String artifactId)
- Overrides:
setArtifactId
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
getPluginLookupKey
public String getPluginLookupKey()
- Overrides:
getPluginLookupKey
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
getId
public String getId()
- Overrides:
getId
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
getGoalPrefix
public String getGoalPrefix()
- Overrides:
getGoalPrefix
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
setGoalPrefix
public void setGoalPrefix(String goalPrefix)
- Overrides:
setGoalPrefix
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
setVersion
public void setVersion(String version)
- Overrides:
setVersion
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
getVersion
public String getVersion()
- Overrides:
getVersion
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
setSource
public void setSource(String source)
- Overrides:
setSource
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
getSource
public String getSource()
- Overrides:
getSource
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
isInheritedByDefault
public boolean isInheritedByDefault()
- Overrides:
isInheritedByDefault
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
setInheritedByDefault
public void setInheritedByDefault(boolean inheritedByDefault)
- Overrides:
setInheritedByDefault
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
getArtifacts
public List<org.apache.maven.artifact.Artifact> getArtifacts()
- Overrides:
getArtifacts
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
setArtifacts
public void setArtifacts(List<org.apache.maven.artifact.Artifact> artifacts)
- Overrides:
setArtifacts
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
getArtifactMap
public Map<String,org.apache.maven.artifact.Artifact> getArtifactMap()
- Overrides:
getArtifactMap
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
getMojo
public org.apache.maven.plugin.descriptor.MojoDescriptor getMojo(String goal)
- Overrides:
getMojo
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
setClassRealm
public void setClassRealm(org.codehaus.plexus.classworlds.realm.ClassRealm classRealm)
- Overrides:
setClassRealm
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
getClassRealm
public org.codehaus.plexus.classworlds.realm.ClassRealm getClassRealm()
- Overrides:
getClassRealm
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
setIntroducedDependencyArtifacts
public void setIntroducedDependencyArtifacts(Set<org.apache.maven.artifact.Artifact> introducedDependencyArtifacts)
- Overrides:
setIntroducedDependencyArtifacts
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
getIntroducedDependencyArtifacts
public Set<org.apache.maven.artifact.Artifact> getIntroducedDependencyArtifacts()
- Overrides:
getIntroducedDependencyArtifacts
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
setName
public void setName(String name)
- Overrides:
setName
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
getName
public String getName()
- Overrides:
getName
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
setDescription
public void setDescription(String description)
- Overrides:
setDescription
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
getDescription
public String getDescription()
- Overrides:
getDescription
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
setRequiredMavenVersion
public void setRequiredMavenVersion(String requiredMavenVersion)
- Overrides:
setRequiredMavenVersion
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
getRequiredMavenVersion
public String getRequiredMavenVersion()
- Overrides:
getRequiredMavenVersion
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
setPlugin
public void setPlugin(org.apache.maven.model.Plugin plugin)
- Overrides:
setPlugin
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
getPlugin
public org.apache.maven.model.Plugin getPlugin()
- Overrides:
getPlugin
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
getPluginArtifact
public org.apache.maven.artifact.Artifact getPluginArtifact()
- Overrides:
getPluginArtifact
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
setPluginArtifact
public void setPluginArtifact(org.apache.maven.artifact.Artifact pluginArtifact)
- Overrides:
setPluginArtifact
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
getLifecycleMapping
public org.apache.maven.plugin.lifecycle.Lifecycle getLifecycleMapping(String lifecycleId) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
- Overrides:
getLifecycleMapping
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
- Throws:
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
clone
public org.apache.maven.plugin.descriptor.PluginDescriptor clone()
- Overrides:
clone
in classorg.apache.maven.plugin.descriptor.PluginDescriptor
-
-