@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
Deprecated.
unused
|
boolean |
inheritByDefault
Deprecated.
unused
|
InstantiationStrategy |
instantiationStrategy
your Mojo instantiation strategy.
|
ResolutionScope |
requiresDependencyCollection
the required dependency collection scope.
|
ResolutionScope |
requiresDependencyResolution
the required dependency resolution scope.
|
boolean |
requiresDirectInvocation
Deprecated.
unused
|
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
Deprecated.
unused
|
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)@Deprecated public abstract String executionStrategy
once-per-session
or always
.once-per-session
or always
public abstract boolean requiresProject
@Deprecated public abstract boolean requiresReports
public abstract boolean aggregator
@Deprecated public abstract boolean requiresDirectInvocation
public abstract boolean requiresOnline
@Deprecated public abstract boolean inheritByDefault
public abstract String configurator
public abstract boolean threadSafe
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.