Package org.apache.maven.model
Class PluginExecution
java.lang.Object
org.apache.maven.model.ConfigurationContainer
org.apache.maven.model.PluginExecution
- All Implemented Interfaces:
Serializable
,Cloneable
,InputLocationTracker
The
<execution>
element contains
informations required for the
execution of a plugin.- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Method addGoal.clone()
Method clone.getGoals()
Method getGoals.getId()
Get the identifier of this execution for labelling the goals during the build, and for matching executions to merge during inheritance and profile injection.getPhase()
Get the build lifecycle phase to bind the goals in this execution to.int
Get the priority of this execution compared to other executions which are bound to the same phase.void
removeGoal
(String string) Method removeGoal.void
Set the goals to execute with the given configuration.void
Set the identifier of this execution for labelling the goals during the build, and for matching executions to merge during inheritance and profile injection.void
Set the build lifecycle phase to bind the goals in this execution to.void
setPriority
(int priority) Set the priority of this execution compared to other executions which are bound to the same phase.toString()
Methods inherited from class org.apache.maven.model.ConfigurationContainer
getConfiguration, getInherited, getLocation, isInheritanceApplied, isInherited, setConfiguration, setInherited, setInherited, setLocation, setOtherLocation, unsetInheritanceApplied
-
Field Details
-
DEFAULT_EXECUTION_ID
- See Also:
-
-
Constructor Details
-
PluginExecution
public PluginExecution()
-
-
Method Details
-
addGoal
Method addGoal.- Parameters:
string
- a string object.
-
clone
Method clone.- Overrides:
clone
in classConfigurationContainer
- Returns:
- PluginExecution
-
getGoals
Method getGoals.- Returns:
- List
-
getId
Get the identifier of this execution for labelling the goals during the build, and for matching executions to merge during inheritance and profile injection.- Returns:
- String
-
getPhase
Get the build lifecycle phase to bind the goals in this execution to. If omitted, the goals will be bound to the default phase specified by the plugin.- Returns:
- String
-
getPriority
public int getPriority()Get the priority of this execution compared to other executions which are bound to the same phase. Warning: This is an internal utility property that is only public for technical reasons, it is not part of the public API. In particular, this property can be changed or deleted without prior notice.- Returns:
- int
-
removeGoal
Method removeGoal.- Parameters:
string
- a string object.
-
setGoals
Set the goals to execute with the given configuration.- Parameters:
goals
- a goals object.
-
setId
Set the identifier of this execution for labelling the goals during the build, and for matching executions to merge during inheritance and profile injection.- Parameters:
id
- a id object.
-
setPhase
Set the build lifecycle phase to bind the goals in this execution to. If omitted, the goals will be bound to the default phase specified by the plugin.- Parameters:
phase
- a phase object.
-
setPriority
public void setPriority(int priority) Set the priority of this execution compared to other executions which are bound to the same phase. Warning: This is an internal utility property that is only public for technical reasons, it is not part of the public API. In particular, this property can be changed or deleted without prior notice.- Parameters:
priority
- a priority object.
-
toString
-