Package org.apache.maven.plugin
Class MojoExecution
- java.lang.Object
-
- org.apache.maven.plugin.MojoExecution
-
public class MojoExecution extends java.lang.ObjectMojoExecution
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMojoExecution.SourceDescribes the source of an execution.
-
Field Summary
Fields Modifier and Type Field Description private org.codehaus.plexus.util.xml.Xpp3Domconfigurationprivate java.lang.StringexecutionIdprivate java.util.Map<java.lang.String,java.util.List<MojoExecution>>forkedExecutionsThe executions to fork before this execution, indexed by the groupId:artifactId:version of the project on which the forked execution are to be run and in reactor build order.private java.lang.Stringgoalprivate java.lang.StringlifecyclePhaseThe phase may or may not have been bound to a phase but once the plan has been calculated we know what phase this mojo execution is going to run in.private MojoDescriptormojoDescriptorprivate Pluginpluginprivate MojoExecution.Sourcesource
-
Constructor Summary
Constructors Constructor Description MojoExecution(Plugin plugin, java.lang.String goal, java.lang.String executionId)MojoExecution(MojoDescriptor mojoDescriptor)MojoExecution(MojoDescriptor mojoDescriptor, java.lang.String executionId)MojoExecution(MojoDescriptor mojoDescriptor, java.lang.String executionId, MojoExecution.Source source)MojoExecution(MojoDescriptor mojoDescriptor, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetArtifactId()org.codehaus.plexus.util.xml.Xpp3DomgetConfiguration()java.lang.StringgetExecutionId()java.util.Map<java.lang.String,java.util.List<MojoExecution>>getForkedExecutions()java.lang.StringgetGoal()java.lang.StringgetGroupId()java.lang.StringgetLifecyclePhase()MojoDescriptorgetMojoDescriptor()PlugingetPlugin()MojoExecution.SourcegetSource()Gets the source of this execution.java.lang.StringgetVersion()java.lang.Stringidentify()voidsetConfiguration(org.codehaus.plexus.util.xml.Xpp3Dom configuration)voidsetForkedExecutions(java.lang.String projectKey, java.util.List<MojoExecution> forkedExecutions)voidsetLifecyclePhase(java.lang.String lifecyclePhase)voidsetMojoDescriptor(MojoDescriptor mojoDescriptor)java.lang.StringtoString()
-
-
-
Field Detail
-
plugin
private Plugin plugin
-
goal
private java.lang.String goal
-
executionId
private java.lang.String executionId
-
mojoDescriptor
private MojoDescriptor mojoDescriptor
-
configuration
private org.codehaus.plexus.util.xml.Xpp3Dom configuration
-
source
private MojoExecution.Source source
-
lifecyclePhase
private java.lang.String lifecyclePhase
The phase may or may not have been bound to a phase but once the plan has been calculated we know what phase this mojo execution is going to run in.
-
forkedExecutions
private java.util.Map<java.lang.String,java.util.List<MojoExecution>> forkedExecutions
The executions to fork before this execution, indexed by the groupId:artifactId:version of the project on which the forked execution are to be run and in reactor build order.
-
-
Constructor Detail
-
MojoExecution
public MojoExecution(Plugin plugin, java.lang.String goal, java.lang.String executionId)
-
MojoExecution
public MojoExecution(MojoDescriptor mojoDescriptor)
-
MojoExecution
public MojoExecution(MojoDescriptor mojoDescriptor, java.lang.String executionId, MojoExecution.Source source)
-
MojoExecution
public MojoExecution(MojoDescriptor mojoDescriptor, java.lang.String executionId)
-
MojoExecution
public MojoExecution(MojoDescriptor mojoDescriptor, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
-
Method Detail
-
getSource
public MojoExecution.Source getSource()
Gets the source of this execution.- Returns:
- The source of this execution or
nullif unknown.
-
getExecutionId
public java.lang.String getExecutionId()
-
getPlugin
public Plugin getPlugin()
-
getMojoDescriptor
public MojoDescriptor getMojoDescriptor()
-
getConfiguration
public org.codehaus.plexus.util.xml.Xpp3Dom getConfiguration()
-
setConfiguration
public void setConfiguration(org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
identify
public java.lang.String identify()
-
getLifecyclePhase
public java.lang.String getLifecyclePhase()
-
setLifecyclePhase
public void setLifecyclePhase(java.lang.String lifecyclePhase)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getGroupId
public java.lang.String getGroupId()
-
getArtifactId
public java.lang.String getArtifactId()
-
getVersion
public java.lang.String getVersion()
-
getGoal
public java.lang.String getGoal()
-
setMojoDescriptor
public void setMojoDescriptor(MojoDescriptor mojoDescriptor)
-
getForkedExecutions
public java.util.Map<java.lang.String,java.util.List<MojoExecution>> getForkedExecutions()
-
setForkedExecutions
public void setForkedExecutions(java.lang.String projectKey, java.util.List<MojoExecution> forkedExecutions)
-
-