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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create Execution instances.
- 
Method SummaryModifier and TypeMethodDescriptionorg.apache.maven.api.xml.XmlNodeConfiguration to pass to the goals.getGoals()The goals to execute.static Execution.BuilderCreates a newExecutionbuilder instance.static Execution.BuildernewBuilder(boolean withDefaults) Creates a newExecutionbuilder instance using default values or not.static Execution.BuildernewBuilder(Execution from) Creates a newExecutionbuilder instance using the specified object as a basis.static Execution.BuildernewBuilder(Execution from, boolean forceCopy) Creates a newExecutionbuilder instance using the specified object as a basis.static ExecutionCreates a newExecutioninstance.static ExecutionnewInstance(boolean withDefaults) Creates a newExecutioninstance using default values or not.with()Creates a new builder with this object as the basis.withConfiguration(org.apache.maven.api.xml.XmlNode configuration) Creates a newExecutioninstance using the specified configuration.withGoals(Collection<String> goals) Creates a newExecutioninstance using the specified goals.
- 
Method Details- 
getConfigurationpublic org.apache.maven.api.xml.XmlNode getConfiguration()Configuration to pass to the goals.- Returns:
- a XmlNode
 
- 
getGoalsThe goals to execute.- Returns:
- a List<String>
 
- 
withCreates a new builder with this object as the basis.- Returns:
- a Builder
 
- 
withConfigurationCreates a newExecutioninstance using the specified configuration.- Parameters:
- configuration- the new- XmlNodeto use
- Returns:
- a Executionwith the specified configuration
 
- 
withGoalsCreates a newExecutioninstance using the specified goals.- Parameters:
- goals- the new- Collection<String>to use
- Returns:
- a Executionwith the specified goals
 
- 
newInstanceCreates a newExecutioninstance. Equivalent tonewInstance( true ).- Returns:
- a new Execution
- See Also:
 
- 
newInstanceCreates a newExecutioninstance using default values or not. Equivalent tonewBuilder( withDefaults ).build().- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Execution
 
- 
newBuilderCreates a newExecutionbuilder instance. Equivalent tonewBuilder( true ).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newExecutionbuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newExecutionbuilder instance using the specified object as a basis. Equivalent tonewBuilder( from, false ).- Parameters:
- from- the- Executioninstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilderCreates a newExecutionbuilder instance using the specified object as a basis.- Parameters:
- from- the- Executioninstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
 
-