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:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class used to create Execution instances. -
Method Summary
Modifier and TypeMethodDescriptionConfiguration to pass to the goals.getGoals()
The goals to execute.static Execution.Builder
Creates a newExecution
builder instance.static Execution.Builder
newBuilder
(boolean withDefaults) Creates a newExecution
builder instance using default values or not.static Execution.Builder
newBuilder
(Execution from) Creates a newExecution
builder instance using the specified object as a basis.static Execution.Builder
newBuilder
(Execution from, boolean forceCopy) Creates a newExecution
builder instance using the specified object as a basis.static Execution
Creates a newExecution
instance.static Execution
newInstance
(boolean withDefaults) Creates a newExecution
instance using default values or not.with()
Creates a new builder with this object as the basis.withConfiguration
(XmlNode configuration) Creates a newExecution
instance using the specified configuration.withGoals
(Collection<String> goals) Creates a newExecution
instance using the specified goals.
-
Method Details
-
getConfiguration
Configuration to pass to the goals.- Returns:
- a
XmlNode
-
getGoals
The goals to execute.- Returns:
- a
List<String>
-
with
Creates a new builder with this object as the basis.- Returns:
- a
Builder
-
withConfiguration
Creates a newExecution
instance using the specified configuration.- Parameters:
configuration
- the newXmlNode
to use- Returns:
- a
Execution
with the specified configuration
-
withGoals
Creates a newExecution
instance using the specified goals.- Parameters:
goals
- the newCollection<String>
to use- Returns:
- a
Execution
with the specified goals
-
newInstance
Creates a newExecution
instance. Equivalent tonewInstance( true )
.- Returns:
- a new
Execution
- See Also:
-
newInstance
Creates a newExecution
instance using default values or not. Equivalent tonewBuilder( withDefaults ).build()
.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
Execution
-
newBuilder
Creates a newExecution
builder instance. Equivalent tonewBuilder( true )
.- Returns:
- a new
Builder
- See Also:
-
newBuilder
Creates a newExecution
builder instance using default values or not.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newExecution
builder instance using the specified object as a basis. Equivalent tonewBuilder( from, false )
.- Parameters:
from
- theExecution
instance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newExecution
builder instance using the specified object as a basis.- Parameters:
from
- theExecution
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-