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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Lifecycle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPhase(Phase phase)Method addPhase.StringgetId()Get the ID of this lifecycle, for identification in the mojo descriptor.List<Phase>getPhases()Method getPhases.voidremovePhase(Phase phase)Method removePhase.voidsetId(String id)Set the ID of this lifecycle, for identification in the mojo descriptor.voidsetPhases(List<Phase> phases)Set the phase mappings for this lifecycle.
-
-
-
Method Detail
-
addPhase
public void addPhase(Phase phase)
Method addPhase.- Parameters:
phase-
-
getId
public String getId()
Get the ID of this lifecycle, for identification in the mojo descriptor.- Returns:
- String
-
removePhase
public void removePhase(Phase phase)
Method removePhase.- Parameters:
phase-
-
setId
public void setId(String id)
Set the ID of this lifecycle, for identification in the mojo descriptor.- Parameters:
id-
-
-