@Experimental @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
configurator bean name.
|
LifecyclePhase |
defaultPhase
default phase to bind your mojo.
|
InstantiationStrategy |
instantiationStrategy
your Mojo instantiation strategy.
|
ResolutionScope |
requiresDependencyCollection
the required dependency collection scope.
|
ResolutionScope |
requiresDependencyResolution
the required dependency resolution scope.
|
boolean |
requiresOnline
does this Mojo need to be online to be executed?
|
boolean |
requiresProject
does your mojo requires a project to be executed?
|
public abstract 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 boolean requiresProject
public abstract boolean aggregator
public abstract boolean requiresOnline
public abstract String configurator
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.