JavaScript is disabled on your browser.
Skip navigation links
Overview
Class
Use
Tree
Deprecated
Index
Search
Help
org.apache.maven.api.plugin.annotations
Execute
Contents
Description
Optional Element Summary
Element Details
phase
goal
lifecycle
Hide sidebar
Show sidebar
Annotation Interface Execute
@Experimental
@Documented
@Retention
(
RUNTIME
)
@Target
(
TYPE
)
@Inherited
public @interface
Execute
Used if your Mojo needs to fork a
lifecycle
.
Since:
4.0.0
Optional Element Summary
Optional Elements
Modifier and Type
Optional Element
Description
String
goal
Goal to fork.
String
lifecycle
Lifecycle id of the lifecycle that defines
phase()
.
String
phase
Lifecycle phase to fork.
Element Details
phase
@Nonnull
String
phase
Lifecycle phase to fork. Note that specifying a phase overrides specifying a goal.
Returns:
the phase
Default:
""
goal
@Nonnull
String
goal
Goal to fork. Note that specifying a phase overrides specifying a goal. The specified
goal
must be another goal of the same plugin.
Returns:
the goal
Default:
""
lifecycle
@Nonnull
String
lifecycle
Lifecycle id of the lifecycle that defines
phase()
. Only valid in combination with
phase()
. If not specified, Maven will use the lifecycle of the current build.
Returns:
the lifecycle id
See Also:
Lifecycle Mappings
Default:
""