Package org.apache.maven.lifecycle
Class MavenExecutionPlan
- java.lang.Object
-
- org.apache.maven.lifecycle.MavenExecutionPlan
-
- All Implemented Interfaces:
java.lang.Iterable<ExecutionPlanItem>
public class MavenExecutionPlan extends java.lang.Object implements java.lang.Iterable<ExecutionPlanItem>
MavenExecutionPlan
-
-
Constructor Summary
Constructors Constructor Description MavenExecutionPlan(java.util.List<ExecutionPlanItem> planItem, DefaultLifecycles defaultLifecycles)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ExecutionPlanItem
findLastInPhase(java.lang.String requestedPhase)
Returns the last ExecutionPlanItem in the supplied phase.java.util.List<MojoExecution>
getExecutions()
Deprecated.java.util.List<MojoExecution>
getMojoExecutions()
java.util.Set<org.apache.maven.plugin.descriptor.MojoDescriptor>
getNonThreadSafeMojos()
Get set of mojos used but not marked @threadSafejava.util.Set<org.apache.maven.model.Plugin>
getNonThreadSafePlugins()
Get set of plugins having a goal/mojo used but not marked @threadSafejava.util.Iterator<ExecutionPlanItem>
iterator()
int
size()
-
-
-
Constructor Detail
-
MavenExecutionPlan
public MavenExecutionPlan(java.util.List<ExecutionPlanItem> planItem, DefaultLifecycles defaultLifecycles)
-
-
Method Detail
-
iterator
public java.util.Iterator<ExecutionPlanItem> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<ExecutionPlanItem>
-
findLastInPhase
public ExecutionPlanItem findLastInPhase(java.lang.String requestedPhase)
Returns the last ExecutionPlanItem in the supplied phase. If no items are in the specified phase, the closest executionPlanItem from an earlier phase item will be returned.- Parameters:
requestedPhase
- the requested phase The execution plan item- Returns:
- The ExecutionPlanItem or null if none can be found
-
getMojoExecutions
public java.util.List<MojoExecution> getMojoExecutions()
-
getNonThreadSafePlugins
public java.util.Set<org.apache.maven.model.Plugin> getNonThreadSafePlugins()
Get set of plugins having a goal/mojo used but not marked @threadSafe- Returns:
- the set of plugins (without info on which goal is concerned)
-
getNonThreadSafeMojos
public java.util.Set<org.apache.maven.plugin.descriptor.MojoDescriptor> getNonThreadSafeMojos()
Get set of mojos used but not marked @threadSafe- Returns:
- the set of mojo descriptors
-
getExecutions
@Deprecated public java.util.List<MojoExecution> getExecutions()
Deprecated.
-
size
public int size()
-
-