Annotation Type Execute
-
@Documented @Retention(CLASS) @Target(TYPE) @Inherited public @interface Execute
Used if your Mojo needs to fork a lifecycle.- Since:
- 3.0
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String
goal
goal to fork.java.lang.String
lifecycle
lifecycle id of the lifecycle that definesphase()
.LifecyclePhase
phase
lifecycle phase to fork.
-
-
-
Element Detail
-
phase
LifecyclePhase phase
lifecycle phase to fork. Note that specifying a phase overrides specifying a goal.- Returns:
- the phase
- Default:
- org.apache.maven.plugins.annotations.LifecyclePhase.NONE
-
-
-
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:
- ""
-
-