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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addComponent
(Component component) Method addComponent.void
addParameter
(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.boolean
Get whether this mojo operates as an aggregator when the reactor is run.boolean
Get whether this mojo's configuration should propagate down the POM inheritance chain by default.boolean
Get if true, this mojo can only be directly invoked (eg.boolean
Get whether this mojo requires online mode to operate normally.boolean
Get whether this mojo requires a project instance in order to execute.boolean
Get whether this mojo requires a reports section in the POM.void
removeComponent
(Component component) Method removeComponent.void
removeParameter
(Parameter parameter) Method removeParameter.void
setAggregator
(boolean aggregator) Set whether this mojo operates as an aggregator when the reactor is run.void
Set the target/method within the script to call when this mojo executes.void
setComponents
(List<Component> components) Set list of plexus components required by this mojo.void
setDeprecation
(String deprecation) Set a deprecation message for this mojo parameter.void
setDescription
(String description) Set the description for this parameter.void
setExecution
(LifecycleExecution execution) Set information about a sub-execution of the Maven lifecycle which should be processed.void
Set the name of the goal used to invoke this mojo.void
setInheritByDefault
(boolean inheritByDefault) Set whether this mojo's configuration should propagate down the POM inheritance chain by default.void
setParameters
(List<Parameter> parameters) Set list of parameters used by this mojo.void
Set the phase to which this mojo should be bound by default.void
setRequiresDependencyResolution
(String requiresDependencyResolution) Set the scope of dependencies that this mojo requires to have resolved.void
setRequiresDirectInvocation
(boolean requiresDirectInvocation) Set if true, this mojo can only be directly invoked (eg.void
setRequiresOnline
(boolean requiresOnline) Set whether this mojo requires online mode to operate normally.void
setRequiresProject
(boolean requiresProject) Set whether this mojo requires a project instance in order to execute.void
setRequiresReports
(boolean requiresReports) Set whether this mojo requires a reports section in the POM.void
Set version when the mojo was added to the API.
-
Constructor Details
-
Mojo
public Mojo()
-
-
Method Details
-
addComponent
Method addComponent.- Parameters:
component
- a component object.
-
addParameter
Method addParameter.- Parameters:
parameter
- a parameter object.
-
getCall
Get the target/method within the script to call when this mojo executes.- Returns:
- String
-
getComponents
Method getComponents.- Returns:
- List
-
getDeprecation
Get a deprecation message for this mojo parameter.- Returns:
- String
-
getDescription
Get the description for this parameter.- Returns:
- String
-
getExecution
Get information about a sub-execution of the Maven lifecycle which should be processed.- Returns:
- LifecycleExecution
-
getGoal
Get the name of the goal used to invoke this mojo.- Returns:
- String
-
getParameters
Method getParameters.- Returns:
- List
-
getPhase
Get the phase to which this mojo should be bound by default.- Returns:
- String
-
getRequiresDependencyResolution
Get the scope of dependencies that this mojo requires to have resolved.- Returns:
- String
-
getSince
Get version when the mojo was added to the API.- Returns:
- String
-
isAggregator
Get whether this mojo operates as an aggregator when the reactor is run. That is, only runs once.- Returns:
- boolean
-
isInheritByDefault
Get whether this mojo's configuration should propagate down the POM inheritance chain by default.- Returns:
- boolean
-
isRequiresDirectInvocation
Get if true, this mojo can only be directly invoked (eg. specified directly on the command line).- Returns:
- boolean
-
isRequiresOnline
Get whether this mojo requires online mode to operate normally.- Returns:
- boolean
-
isRequiresProject
Get whether this mojo requires a project instance in order to execute.- Returns:
- boolean
-
isRequiresReports
Get whether this mojo requires a reports section in the POM.- Returns:
- boolean
-
removeComponent
Method removeComponent.- Parameters:
component
- a component object.
-
removeParameter
Method removeParameter.- Parameters:
parameter
- a parameter object.
-
setAggregator
Set whether this mojo operates as an aggregator when the reactor is run. That is, only runs once.- Parameters:
aggregator
- a aggregator object.
-
setCall
Set the target/method within the script to call when this mojo executes.- Parameters:
call
- a call object.
-
setComponents
Set list of plexus components required by this mojo.- Parameters:
components
- a components object.
-
setDeprecation
Set a deprecation message for this mojo parameter.- Parameters:
deprecation
- a deprecation object.
-
setDescription
Set the description for this parameter.- Parameters:
description
- a description object.
-
setExecution
Set information about a sub-execution of the Maven lifecycle which should be processed.- Parameters:
execution
- a execution object.
-
setGoal
Set the name of the goal used to invoke this mojo.- Parameters:
goal
- a goal object.
-
setInheritByDefault
Set whether this mojo's configuration should propagate down the POM inheritance chain by default.- Parameters:
inheritByDefault
- a inheritByDefault object.
-
setParameters
Set list of parameters used by this mojo.- Parameters:
parameters
- a parameters object.
-
setPhase
Set the phase to which this mojo should be bound by default.- Parameters:
phase
- a phase object.
-
setRequiresDependencyResolution
Set the scope of dependencies that this mojo requires to have resolved.- Parameters:
requiresDependencyResolution
- a requiresDependencyResolution object.
-
setRequiresDirectInvocation
Set if true, this mojo can only be directly invoked (eg. specified directly on the command line).- Parameters:
requiresDirectInvocation
- a requiresDirectInvocation object.
-
setRequiresOnline
Set whether this mojo requires online mode to operate normally.- Parameters:
requiresOnline
- a requiresOnline object.
-
setRequiresProject
Set whether this mojo requires a project instance in order to execute.- Parameters:
requiresProject
- a requiresProject object.
-
setRequiresReports
Set whether this mojo requires a reports section in the POM.- Parameters:
requiresReports
- a requiresReports object.
-
setSince
Set version when the mojo was added to the API.- Parameters:
since
- a since object.
-