Annotation Type Execute
-
@Documented @Retention(CLASS) @Target(TYPE) @Inherited public @interface ExecuteUsed 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 java.lang.StringcustomPhaseCustom lifecycle phase to fork.java.lang.StringgoalGoal to fork.java.lang.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
java.lang.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
java.lang.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:
- ""
-
-