Annotation Type Execute
-
@Documented @Retention(CLASS) @Target(TYPE) @Inherited public @interface Execute
Used if your Mojo needs to fork a lifecycle.- Since:
- 3.0
- Author:
- Olivier Lamy
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringcustomPhaseCustom lifecycle phase to fork.StringgoalGoal to fork.StringlifecycleLifecycle id of the lifecycle that definesphase().LifecyclePhasephaseLifecycle phase to fork.
-
-
-
Element Detail
-
phase
LifecyclePhase phase
Lifecycle phase to fork. Note that specifying a phase overrides specifying a goal. For custom lifecycle phase ids usecustomPhase()instead. Only one ofcustomPhase()andphase()must be set.- Returns:
- the phase
- Default:
- org.apache.maven.plugins.annotations.LifecyclePhase.NONE
-
-
-
customPhase
String customPhase
Custom lifecycle phase to fork. Note that specifying a phase overrides specifying a goal. This element should only be used for non-standard phases. For standard phases rather usephase(). Only one ofcustomPhase()andphase()must be set.- Returns:
- the custom phase id
- Since:
- 3.8.0
- Default:
- ""
-
-
-
lifecycle
String lifecycle
Lifecycle id of the lifecycle that definesphase(). Only valid in combination withphase(). If not specified, Maven will use the lifecycle of the current build.- Returns:
- the lifecycle id
- See Also:
- Lifecycle Mappings
- Default:
- ""
-
-