Annotation Type Mojo
This annotation will mark your class as a Mojo (ie. goal in a Maven plugin).
- Since:
- 4.0
- 
Required Element SummaryRequired Elements
- 
Optional Element SummaryOptional ElementsModifier and TypeOptional ElementDescriptionbooleanif the Mojo uses the Maven project and its child modules.configurator bean name.default phase to bind your mojo.your Mojo instantiation strategy.the required dependency collection scope.the required dependency resolution scope.booleandoes this Mojo need to be online to be executed?booleandoes your mojo requires a project to be executed?
- 
Element Details- 
nameString namegoal name (required).- Returns:
- the goal name
 
 
- 
- 
- 
defaultPhaseLifecyclePhase defaultPhasedefault phase to bind your mojo.- Returns:
- the default phase
 - Default:
- NONE
 
- 
requiresDependencyResolutionResolutionScope requiresDependencyResolutionthe required dependency resolution scope.- Returns:
- the required dependency resolution scope
 - Default:
- NONE
 
- 
requiresDependencyCollectionResolutionScope requiresDependencyCollectionthe required dependency collection scope.- Returns:
- the required dependency collection scope
 - Default:
- NONE
 
- 
instantiationStrategyInstantiationStrategy instantiationStrategyyour Mojo instantiation strategy. (Onlyper-lookupandsingletonare supported)- Returns:
- the instantiation strategy
 - Default:
- PER_LOOKUP
 
- 
requiresProjectboolean requiresProjectdoes your mojo requires a project to be executed?- Returns:
- requires a project
 - Default:
- true
 
- 
aggregatorboolean aggregatorif the Mojo uses the Maven project and its child modules.- Returns:
- uses the Maven project and its child modules
 - Default:
- false
 
- 
requiresOnlineboolean requiresOnlinedoes this Mojo need to be online to be executed?- Returns:
- need to be online
 - Default:
- false
 
- 
configuratorString configuratorconfigurator bean name.- Returns:
- the configurator bean name
 - Default:
- ""
 
 
-