Class Mojo
java.lang.Object
org.apache.maven.tools.plugin.extractor.model.Mojo
- All Implemented Interfaces:
- Serializable
Mojo descriptor definition.
- Version:
- $Revision$ $Date$
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddComponent(Component component) Method addComponent.voidaddParameter(Parameter parameter) Method addParameter.getCall()Get the target/method within the script to call when this mojo executes.Method getComponents.Get a deprecation message for this mojo parameter.Get the description for this parameter.Get information about a sub-execution of the Maven lifecycle which should be processed.getGoal()Get the name of the goal used to invoke this mojo.Method getParameters.getPhase()Get the phase to which this mojo should be bound by default.Get the scope of dependencies that this mojo requires to have resolved.getSince()Get version when the mojo was added to the API.booleanGet whether this mojo operates as an aggregator when the reactor is run.booleanGet whether this mojo's configuration should propagate down the POM inheritance chain by default.booleanGet if true, this mojo can only be directly invoked (eg.booleanGet whether this mojo requires online mode to operate normally.booleanGet whether this mojo requires a project instance in order to execute.booleanGet whether this mojo requires a reports section in the POM.voidremoveComponent(Component component) Method removeComponent.voidremoveParameter(Parameter parameter) Method removeParameter.voidsetAggregator(boolean aggregator) Set whether this mojo operates as an aggregator when the reactor is run.voidSet the target/method within the script to call when this mojo executes.voidsetComponents(List<Component> components) Set list of plexus components required by this mojo.voidsetDeprecation(String deprecation) Set a deprecation message for this mojo parameter.voidsetDescription(String description) Set the description for this parameter.voidsetExecution(LifecycleExecution execution) Set information about a sub-execution of the Maven lifecycle which should be processed.voidSet the name of the goal used to invoke this mojo.voidsetInheritByDefault(boolean inheritByDefault) Set whether this mojo's configuration should propagate down the POM inheritance chain by default.voidsetParameters(List<Parameter> parameters) Set list of parameters used by this mojo.voidSet the phase to which this mojo should be bound by default.voidsetRequiresDependencyResolution(String requiresDependencyResolution) Set the scope of dependencies that this mojo requires to have resolved.voidsetRequiresDirectInvocation(boolean requiresDirectInvocation) Set if true, this mojo can only be directly invoked (eg.voidsetRequiresOnline(boolean requiresOnline) Set whether this mojo requires online mode to operate normally.voidsetRequiresProject(boolean requiresProject) Set whether this mojo requires a project instance in order to execute.voidsetRequiresReports(boolean requiresReports) Set whether this mojo requires a reports section in the POM.voidSet version when the mojo was added to the API.
- 
Constructor Details- 
Mojopublic Mojo()
 
- 
- 
Method Details- 
addComponentMethod addComponent.- Parameters:
- component- a component object.
 
- 
addParameterMethod addParameter.- Parameters:
- parameter- a parameter object.
 
- 
getCallGet the target/method within the script to call when this mojo executes.- Returns:
- String
 
- 
getComponentsMethod getComponents.- Returns:
- List
 
- 
getDeprecationGet a deprecation message for this mojo parameter.- Returns:
- String
 
- 
getDescriptionGet the description for this parameter.- Returns:
- String
 
- 
getExecutionGet information about a sub-execution of the Maven lifecycle which should be processed.- Returns:
- LifecycleExecution
 
- 
getGoalGet the name of the goal used to invoke this mojo.- Returns:
- String
 
- 
getParametersMethod getParameters.- Returns:
- List
 
- 
getPhaseGet the phase to which this mojo should be bound by default.- Returns:
- String
 
- 
getRequiresDependencyResolutionGet the scope of dependencies that this mojo requires to have resolved.- Returns:
- String
 
- 
getSinceGet version when the mojo was added to the API.- Returns:
- String
 
- 
isAggregatorGet whether this mojo operates as an aggregator when the reactor is run. That is, only runs once.- Returns:
- boolean
 
- 
isInheritByDefaultGet whether this mojo's configuration should propagate down the POM inheritance chain by default.- Returns:
- boolean
 
- 
isRequiresDirectInvocationGet if true, this mojo can only be directly invoked (eg. specified directly on the command line).- Returns:
- boolean
 
- 
isRequiresOnlineGet whether this mojo requires online mode to operate normally.- Returns:
- boolean
 
- 
isRequiresProjectGet whether this mojo requires a project instance in order to execute.- Returns:
- boolean
 
- 
isRequiresReportsGet whether this mojo requires a reports section in the POM.- Returns:
- boolean
 
- 
removeComponentMethod removeComponent.- Parameters:
- component- a component object.
 
- 
removeParameterMethod removeParameter.- Parameters:
- parameter- a parameter object.
 
- 
setAggregatorSet whether this mojo operates as an aggregator when the reactor is run. That is, only runs once.- Parameters:
- aggregator- a aggregator object.
 
- 
setCallSet the target/method within the script to call when this mojo executes.- Parameters:
- call- a call object.
 
- 
setComponentsSet list of plexus components required by this mojo.- Parameters:
- components- a components object.
 
- 
setDeprecationSet a deprecation message for this mojo parameter.- Parameters:
- deprecation- a deprecation object.
 
- 
setDescriptionSet the description for this parameter.- Parameters:
- description- a description object.
 
- 
setExecutionSet information about a sub-execution of the Maven lifecycle which should be processed.- Parameters:
- execution- a execution object.
 
- 
setGoalSet the name of the goal used to invoke this mojo.- Parameters:
- goal- a goal object.
 
- 
setInheritByDefaultSet whether this mojo's configuration should propagate down the POM inheritance chain by default.- Parameters:
- inheritByDefault- a inheritByDefault object.
 
- 
setParametersSet list of parameters used by this mojo.- Parameters:
- parameters- a parameters object.
 
- 
setPhaseSet the phase to which this mojo should be bound by default.- Parameters:
- phase- a phase object.
 
- 
setRequiresDependencyResolutionSet the scope of dependencies that this mojo requires to have resolved.- Parameters:
- requiresDependencyResolution- a requiresDependencyResolution object.
 
- 
setRequiresDirectInvocationSet if true, this mojo can only be directly invoked (eg. specified directly on the command line).- Parameters:
- requiresDirectInvocation- a requiresDirectInvocation object.
 
- 
setRequiresOnlineSet whether this mojo requires online mode to operate normally.- Parameters:
- requiresOnline- a requiresOnline object.
 
- 
setRequiresProjectSet whether this mojo requires a project instance in order to execute.- Parameters:
- requiresProject- a requiresProject object.
 
- 
setRequiresReportsSet whether this mojo requires a reports section in the POM.- Parameters:
- requiresReports- a requiresReports object.
 
- 
setSinceSet version when the mojo was added to the API.- Parameters:
- since- a since object.
 
 
-