@Documented @Retention(value=CLASS) @Target(value=TYPE) @Inherited public @interface Mojo
Modifier and Type | Required Element and Description |
---|---|
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.
|
String |
configurator
own configurator class.
|
LifecyclePhase |
defaultPhase
default phase to bind your mojo.
|
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 LifecyclePhase defaultPhase
public abstract ResolutionScope requiresDependencyResolution
public abstract ResolutionScope requiresDependencyCollection
public abstract InstantiationStrategy 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
Copyright © 2004–2015 The Apache Software Foundation. All rights reserved.