Class Execution

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

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

    • getConfiguration

      public Dom getConfiguration()
      Configuration to pass to the goals.
    • getGoals

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

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

      @Nonnull public Execution withConfiguration(Dom configuration)
      Creates a new Execution instance using the specified configuration.
    • withGoals

      @Nonnull public Execution withGoals(Collection<String> goals)
      Creates a new Execution instance using the specified goals.
    • newInstance

      @Nonnull public static Execution newInstance()
      Creates a new Execution instance. Equivalent to newInstance( true ).
      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().
    • newBuilder

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

      @Nonnull public static Execution.Builder newBuilder(boolean withDefaults)
      Creates a new Execution builder instance using default values or not.
    • 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 ).
    • newBuilder

      @Nonnull public static Execution.Builder newBuilder(Execution from, boolean forceCopy)
      Creates a new Execution builder instance using the specified object as a basis.