|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Documented @Retention(value=CLASS) @Target(value=TYPE) @Inherited public @interface Mojo
This annotation will mark your class as a Mojo (ie. goal in a Maven plugin).
Required Element Summary | |
---|---|
String |
name
goal name (required). |
Optional Element Summary | |
---|---|
boolean |
aggregator
if the Mojo uses the Maven project and its child modules. |
String |
configurator
own configurator class. |
LifecyclePhase |
defaultPhase
default phase to bind your mojo. |
String |
executionStrategy
execution strategy: once-per-session or always . |
boolean |
inheritByDefault
|
InstanciationStrategy |
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)? |
Element Detail |
---|
public abstract String name
public abstract LifecyclePhase defaultPhase
public abstract ResolutionScope requiresDependencyResolution
public abstract ResolutionScope requiresDependencyCollection
public abstract InstanciationStrategy instantiationStrategy
per-lookup
and singleton
are supported)
public abstract 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
public abstract boolean inheritByDefault
public abstract String configurator
public abstract boolean threadSafe
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |