org.apache.maven.plugin.descriptor
Class PluginDescriptor
java.lang.Object
org.codehaus.plexus.component.repository.ComponentSetDescriptor
org.apache.maven.plugin.descriptor.PluginDescriptor
public class PluginDescriptor
- extends org.codehaus.plexus.component.repository.ComponentSetDescriptor
- Version:
- $Id: PluginDescriptor.java 743587 2009-02-12 01:32:50Z jdcasey $
- Author:
- Jason van Zyl
Methods inherited from class org.codehaus.plexus.component.repository.ComponentSetDescriptor |
addComponentDescriptor, addDependency, getComponents, getDependencies, isIsolatedRealm, setComponents, setDependencies, setId, setIsolatedRealm, toString |
PluginDescriptor
public PluginDescriptor()
getMojos
public List getMojos()
addMojo
public void addMojo(MojoDescriptor mojoDescriptor)
throws DuplicateMojoDescriptorException
- Throws:
DuplicateMojoDescriptorException
getGroupId
public String getGroupId()
setGroupId
public void setGroupId(String groupId)
getArtifactId
public String getArtifactId()
setArtifactId
public void setArtifactId(String artifactId)
constructPluginKey
public static String constructPluginKey(String groupId,
String artifactId,
String version)
getPluginLookupKey
public String getPluginLookupKey()
getId
public String getId()
- Overrides:
getId
in class org.codehaus.plexus.component.repository.ComponentSetDescriptor
getDefaultPluginArtifactId
public static String getDefaultPluginArtifactId(String id)
getDefaultPluginGroupId
public static String getDefaultPluginGroupId()
getGoalPrefixFromArtifactId
public static String getGoalPrefixFromArtifactId(String artifactId)
- Parse maven-...-plugin.
getGoalPrefix
public String getGoalPrefix()
setGoalPrefix
public void setGoalPrefix(String goalPrefix)
setVersion
public void setVersion(String version)
getVersion
public String getVersion()
setSource
public void setSource(String source)
getSource
public String getSource()
isInheritedByDefault
public boolean isInheritedByDefault()
setInheritedByDefault
public void setInheritedByDefault(boolean inheritedByDefault)
getArtifacts
public List getArtifacts()
setArtifacts
public void setArtifacts(List artifacts)
getArtifactMap
public Map getArtifactMap()
equals
public boolean equals(Object object)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
getMojo
public MojoDescriptor getMojo(String goal)
getLifecycleMapping
public Lifecycle getLifecycleMapping(String lifecycle)
throws IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- Throws:
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
setClassRealm
public void setClassRealm(org.codehaus.classworlds.ClassRealm classRealm)
getClassRealm
public org.codehaus.classworlds.ClassRealm getClassRealm()
setIntroducedDependencyArtifacts
public void setIntroducedDependencyArtifacts(Set introducedDependencyArtifacts)
getIntroducedDependencyArtifacts
public Set getIntroducedDependencyArtifacts()
setName
public void setName(String name)
getName
public String getName()
setDescription
public void setDescription(String description)
getDescription
public String getDescription()
getPluginArtifact
public Artifact getPluginArtifact()
setPluginArtifact
public void setPluginArtifact(Artifact pluginArtifact)
Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.