Class PluginExecution

java.lang.Object
org.apache.maven.model.ConfigurationContainer
org.apache.maven.model.PluginExecution
All Implemented Interfaces:
Serializable

public class PluginExecution extends ConfigurationContainer implements Serializable
The <execution> element contains informations required for the execution of a plugin.
Version:
$Revision$ $Date$
See Also:
  • Field Details

    • id

      private String id
      The identifier of this execution for labelling the goals during the build, and for matching executions to merge during inheritance and profile injection.
    • phase

      private String phase
      The build lifecycle phase to bind the goals in this execution to. If omitted, the goals will be bound to the default phase specified in their metadata.
    • goals

      private List<String> goals
      Field goals.
    • DEFAULT_EXECUTION_ID

      public static final String DEFAULT_EXECUTION_ID
      See Also:
  • Constructor Details

    • PluginExecution

      public PluginExecution()
  • Method Details

    • addGoal

      public void addGoal(String string)
      Method addGoal.
      Parameters:
      string - a string object.
    • getGoals

      public List<String> getGoals()
      Method getGoals.
      Returns:
      List
    • getId

      public String 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

      public 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 in their metadata.
      Returns:
      String
    • removeGoal

      public void removeGoal(String string)
      Method removeGoal.
      Parameters:
      string - a string object.
    • setGoals

      public void setGoals(List<String> goals)
      Set the goals to execute with the given configuration.
      Parameters:
      goals - a goals object.
    • setId

      public void setId(String id)
      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

      public void setPhase(String phase)
      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 in their metadata.
      Parameters:
      phase - a phase object.