Class Lifecycle

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

public class Lifecycle extends Object implements Serializable
A custom lifecycle mapping definition.
Version:
$Revision$ $Date$
See Also:
  • Constructor Details

    • Lifecycle

      public Lifecycle()
  • Method Details

    • addPhase

      public void addPhase(Phase phase)
      Method addPhase.
      Parameters:
      phase - a phase object.
    • getId

      public String getId()
      Get the ID of this lifecycle, for identification in the mojo descriptor.
      Returns:
      String
    • getPhases

      public List<Phase> getPhases()
      Method getPhases.
      Returns:
      List
    • removePhase

      public void removePhase(Phase phase)
      Method removePhase.
      Parameters:
      phase - a phase object.
    • setId

      public void setId(String id)
      Set the ID of this lifecycle, for identification in the mojo descriptor.
      Parameters:
      id - a id object.
    • setPhases

      public void setPhases(List<Phase> phases)
      Set the phase mappings for this lifecycle.
      Parameters:
      phases - a phases object.