Class Execution

java.lang.Object
org.apache.maven.plugin.lifecycle.Execution
All Implemented Interfaces:
Serializable

@Experimental @Generated @ThreadSafe @Immutable public class Execution extends Object implements Serializable
A set of goals to execute.
See Also:
  • Method Details

    • getConfiguration

      public XmlNode getConfiguration()
      Configuration to pass to the goals.
      Returns:
      a XmlNode
    • getGoals

      @Nonnull public List<String> getGoals()
      The goals to execute.
      Returns:
      a List<String>
    • with

      @Nonnull public Execution.Builder with()
      Creates a new builder with this object as the basis.
      Returns:
      a Builder
    • withConfiguration

      @Nonnull public Execution withConfiguration(XmlNode configuration)
      Creates a new Execution instance using the specified configuration.
      Parameters:
      configuration - the new XmlNode to use
      Returns:
      a Execution with the specified configuration
    • withGoals

      @Nonnull public Execution withGoals(Collection<String> goals)
      Creates a new Execution instance using the specified goals.
      Parameters:
      goals - the new Collection<String> to use
      Returns:
      a Execution with the specified goals
    • newInstance

      @Nonnull public static Execution newInstance()
      Creates a new Execution instance. Equivalent to newInstance( true ).
      Returns:
      a new Execution
      See Also:
    • newInstance

      @Nonnull public static Execution newInstance(boolean withDefaults)
      Creates a new Execution instance using default values or not. Equivalent to newBuilder( withDefaults ).build().
      Parameters:
      withDefaults - the boolean indicating whether default values should be used
      Returns:
      a new Execution
    • newBuilder

      @Nonnull public static Execution.Builder newBuilder()
      Creates a new Execution builder instance. Equivalent to newBuilder( true ).
      Returns:
      a new Builder
      See Also:
    • newBuilder

      @Nonnull public static Execution.Builder newBuilder(boolean withDefaults)
      Creates a new Execution builder instance using default values or not.
      Parameters:
      withDefaults - the boolean indicating whether default values should be used
      Returns:
      a new Builder
    • newBuilder

      @Nonnull public static Execution.Builder newBuilder(Execution from)
      Creates a new Execution builder instance using the specified object as a basis. Equivalent to newBuilder( from, false ).
      Parameters:
      from - the Execution instance to use as a basis
      Returns:
      a new Builder
    • newBuilder

      @Nonnull public static Execution.Builder newBuilder(Execution from, boolean forceCopy)
      Creates a new Execution builder instance using the specified object as a basis.
      Parameters:
      from - the Execution instance to use as a basis
      forceCopy - the boolean indicating if a copy should be forced
      Returns:
      a new Builder