Class Lifecycle
- java.lang.Object
-
- org.apache.maven.plugin.lifecycle.Lifecycle
-
- All Implemented Interfaces:
java.io.Serializable
public class Lifecycle extends java.lang.Object implements java.io.SerializableA 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.java.lang.StringgetId()Get the ID of this lifecycle, for identification in the mojo descriptor.java.util.List<Phase>getPhases()Method getPhases.voidremovePhase(Phase phase)Method removePhase.voidsetId(java.lang.String id)Set the ID of this lifecycle, for identification in the mojo descriptor.voidsetPhases(java.util.List<Phase> phases)Set the phase mappings for this lifecycle.
-
-
-
Field Detail
-
id
private java.lang.String id
The ID of this lifecycle, for identification in the mojo descriptor.
-
phases
private java.util.List<Phase> phases
Field phases.
-
-
Method Detail
-
addPhase
public void addPhase(Phase phase)
Method addPhase.- Parameters:
phase-
-
getId
public java.lang.String getId()
Get the ID of this lifecycle, for identification in the mojo descriptor.- Returns:
- String
-
getPhases
public java.util.List<Phase> getPhases()
Method getPhases.- Returns:
- List
-
removePhase
public void removePhase(Phase phase)
Method removePhase.- Parameters:
phase-
-
setId
public void setId(java.lang.String id)
Set the ID of this lifecycle, for identification in the mojo descriptor.- Parameters:
id-
-
setPhases
public void setPhases(java.util.List<Phase> phases)
Set the phase mappings for this lifecycle.- Parameters:
phases-
-
-