Package org.apache.maven.plugin
Class MojoExecution
- java.lang.Object
-
- org.apache.maven.plugin.MojoExecution
-
public class MojoExecution extends java.lang.Object
MojoExecution
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MojoExecution.Source
Describes the source of an execution.
-
Field Summary
Fields Modifier and Type Field Description private org.codehaus.plexus.util.xml.Xpp3Dom
configuration
private java.lang.String
executionId
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.private java.lang.String
goal
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.private MojoDescriptor
mojoDescriptor
private Plugin
plugin
private MojoExecution.Source
source
-
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.String
getArtifactId()
org.codehaus.plexus.util.xml.Xpp3Dom
getConfiguration()
java.lang.String
getExecutionId()
java.util.Map<java.lang.String,java.util.List<MojoExecution>>
getForkedExecutions()
java.lang.String
getGoal()
java.lang.String
getGroupId()
java.lang.String
getLifecyclePhase()
MojoDescriptor
getMojoDescriptor()
Plugin
getPlugin()
MojoExecution.Source
getSource()
Gets the source of this execution.java.lang.String
getVersion()
java.lang.String
identify()
void
setConfiguration(org.codehaus.plexus.util.xml.Xpp3Dom configuration)
void
setForkedExecutions(java.lang.String projectKey, java.util.List<MojoExecution> forkedExecutions)
void
setLifecyclePhase(java.lang.String lifecyclePhase)
void
setMojoDescriptor(MojoDescriptor mojoDescriptor)
java.lang.String
toString()
-
-
-
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
null
if 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:
toString
in 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)
-
-