@Documented
@Retention(value=CLASS)
@Target(value=TYPE)
@Inherited
public @interface Mojo
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
name
goal name (required).
|
Modifier and Type | Optional Element and Description |
---|---|
boolean |
aggregator
if the Mojo uses the Maven project and its child modules.
|
java.lang.String |
configurator
own configurator class.
|
LifecyclePhase |
defaultPhase
default phase to bind your mojo.
|
java.lang.String |
executionStrategy
execution strategy:
once-per-session or always . |
boolean |
inheritByDefault |
InstantiationStrategy |
instantiationStrategy
your Mojo instantiation strategy.
|
ResolutionScope |
requiresDependencyCollection
the required dependency collection scope.
|
ResolutionScope |
requiresDependencyResolution
the required dependency resolution scope.
|
boolean |
requiresDirectInvocation
can this Mojo be invoked directly only?
|
boolean |
requiresOnline
does this Mojo need to be online to be executed?
|
boolean |
requiresProject
does your mojo requires a project to be executed?
|
boolean |
requiresReports
does your mojo requires a reporting context to be executed?
|
boolean |
threadSafe
is your mojo thread safe (since Maven 3.x)?
|
public abstract java.lang.String name
public abstract LifecyclePhase defaultPhase
public abstract ResolutionScope requiresDependencyResolution
public abstract ResolutionScope requiresDependencyCollection
public abstract InstantiationStrategy instantiationStrategy
per-lookup
and singleton
are supported)public abstract java.lang.String executionStrategy
once-per-session
or always
.once-per-session
or always
public abstract boolean requiresProject
public abstract boolean requiresReports
public abstract boolean aggregator
public abstract boolean requiresDirectInvocation
public abstract boolean requiresOnline