Class MavenExecutionPlan

  • All Implemented Interfaces:
    java.lang.Iterable<ExecutionPlanItem>

    public class MavenExecutionPlan
    extends java.lang.Object
    implements java.lang.Iterable<ExecutionPlanItem>
    MavenExecutionPlan
    • Field Detail

      • lastMojoExecutionForAllPhases

        private final java.util.Map<java.lang.String,​ExecutionPlanItem> lastMojoExecutionForAllPhases
      • phasesInExecutionPlan

        final java.util.List<java.lang.String> phasesInExecutionPlan
    • Method Detail

      • 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
      • getExecutionPlanItems

        private java.util.List<ExecutionPlanItem> getExecutionPlanItems()
      • getDistinctPhasesInOrderOfExecutionPlanAppearance

        private static java.lang.Iterable<java.lang.String> getDistinctPhasesInOrderOfExecutionPlanAppearance​(java.util.List<ExecutionPlanItem> planItems)
      • getMojoExecutions

        public java.util.List<MojoExecution> getMojoExecutions()
      • getNonThreadSafePlugins

        public java.util.Set<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<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()