public class MojoDescriptor
extends ComponentDescriptor
implements java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MAVEN_PLUGIN
The Plexus component type
|
static java.lang.String |
MULTI_PASS_EXEC_STRATEGY
"always" execution strategy
|
static java.lang.String |
SINGLE_PASS_EXEC_STRATEGY
"once-per-session" execution strategy
|
| Constructor and Description |
|---|
MojoDescriptor()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(Parameter parameter) |
boolean |
alwaysExecute() |
boolean |
equals(java.lang.Object object) |
java.lang.String |
getComponentType() |
java.lang.String |
getDeprecated() |
java.lang.String |
getExecuteGoal() |
java.lang.String |
getExecuteLifecycle() |
java.lang.String |
getExecutePhase() |
java.lang.String |
getExecutionStrategy() |
java.lang.String |
getFullGoalName() |
java.lang.String |
getGoal() |
java.lang.String |
getId() |
java.lang.String |
getLanguage() |
PlexusConfiguration |
getMojoConfiguration() |
java.util.Map |
getParameterMap() |
java.util.List |
getParameters() |
java.lang.String |
getPhase() |
PluginDescriptor |
getPluginDescriptor() |
java.lang.String |
getRole() |
java.lang.String |
getRoleHint() |
java.lang.String |
getSince() |
int |
hashCode() |
boolean |
isAggregator() |
java.lang.String |
isDependencyResolutionRequired() |
boolean |
isDirectInvocationOnly() |
boolean |
isInheritedByDefault() |
boolean |
isOnlineRequired() |
boolean |
isProjectRequired() |
boolean |
isRequiresReports() |
boolean |
requiresOnline() |
void |
setAggregator(boolean aggregator) |
void |
setDependencyResolutionRequired(java.lang.String requiresDependencyResolution) |
void |
setDeprecated(java.lang.String deprecated) |
void |
setDirectInvocationOnly(boolean directInvocationOnly) |
void |
setExecuteGoal(java.lang.String executeGoal) |
void |
setExecuteLifecycle(java.lang.String executeLifecycle) |
void |
setExecutePhase(java.lang.String executePhase) |
void |
setExecutionStrategy(java.lang.String executionStrategy) |
void |
setGoal(java.lang.String goal) |
void |
setInheritedByDefault(boolean inheritedByDefault) |
void |
setLanguage(java.lang.String language) |
void |
setMojoConfiguration(PlexusConfiguration mojoConfiguration) |
void |
setOnlineRequired(boolean requiresOnline) |
void |
setParameters(java.util.List parameters) |
void |
setPhase(java.lang.String phase) |
void |
setPluginDescriptor(PluginDescriptor pluginDescriptor) |
void |
setProjectRequired(boolean requiresProject) |
void |
setRequiresReports(boolean requiresReports) |
void |
setSince(java.lang.String since) |
public static java.lang.String MAVEN_PLUGIN
public static final java.lang.String SINGLE_PASS_EXEC_STRATEGY
public static final java.lang.String MULTI_PASS_EXEC_STRATEGY
public java.lang.String getLanguage()
javapublic void setLanguage(java.lang.String language)
language - the new languagepublic java.lang.String getDeprecated()
true if the Mojo is deprecated, false otherwise.public void setDeprecated(java.lang.String deprecated)
deprecated - true to deprecate the Mojo, false otherwise.public java.util.List getParameters()
public void setParameters(java.util.List parameters)
throws DuplicateParameterException
parameters - the new list of parametersDuplicateParameterException - if anypublic void addParameter(Parameter parameter) throws DuplicateParameterException
parameter - add a new parameterDuplicateParameterException - if anypublic java.util.Map getParameterMap()
public void setDependencyResolutionRequired(java.lang.String requiresDependencyResolution)
requiresDependencyResolution - the new required dependencies in a specified scopepublic java.lang.String isDependencyResolutionRequired()
public void setProjectRequired(boolean requiresProject)
requiresProject - true if the Mojo needs a Maven project to be executed, false otherwise.public boolean isProjectRequired()
true if the Mojo needs a Maven project to be executed, false otherwise.public void setOnlineRequired(boolean requiresOnline)
requiresOnline - true if the Mojo is online, false otherwise.public boolean isOnlineRequired()
true if the Mojo is online, false otherwise.public boolean requiresOnline()
true if the Mojo is online, false otherwise.public java.lang.String getPhase()
public void setPhase(java.lang.String phase)
phase - the new binded phase name of the Mojopublic java.lang.String getSince()
public void setSince(java.lang.String since)
since - the new version when the Mojo was added to the APIpublic java.lang.String getGoal()
public void setGoal(java.lang.String goal)
goal - The new goal name of the Mojopublic java.lang.String getExecutePhase()
public void setExecutePhase(java.lang.String executePhase)
executePhase - the new invocation phase of the Mojopublic boolean alwaysExecute()
true if the Mojo uses always for the executionStrategypublic java.lang.String getExecutionStrategy()
public void setExecutionStrategy(java.lang.String executionStrategy)
executionStrategy - the new execution strategypublic PlexusConfiguration getMojoConfiguration()
public void setMojoConfiguration(PlexusConfiguration mojoConfiguration)
mojoConfiguration - a new mojo configurationpublic java.lang.String getRole()
public java.lang.String getRoleHint()
public java.lang.String getId()
public java.lang.String getFullGoalName()
PluginDescriptor.getGoalPrefix(),
getGoal()public java.lang.String getComponentType()
public PluginDescriptor getPluginDescriptor()
public void setPluginDescriptor(PluginDescriptor pluginDescriptor)
pluginDescriptor - the new plugin descriptorpublic boolean isInheritedByDefault()
true if the Mojo is herited, false otherwise.public void setInheritedByDefault(boolean inheritedByDefault)
inheritedByDefault - true if the Mojo is herited, false otherwise.public boolean equals(java.lang.Object object)
public int hashCode()
public java.lang.String getExecuteLifecycle()
public void setExecuteLifecycle(java.lang.String executeLifecycle)
executeLifecycle - the new invocation lifecycle of the Mojopublic void setAggregator(boolean aggregator)
aggregator - true if the Mojo uses the Maven project and its child modules, false otherwise.public boolean isAggregator()
true if the Mojo uses the Maven project and its child modules, false otherwise.public boolean isDirectInvocationOnly()
true if the Mojo could not be invoke directly, false otherwise.public void setDirectInvocationOnly(boolean directInvocationOnly)
directInvocationOnly - true if the Mojo could not be invoke directly, false otherwise.public boolean isRequiresReports()
true if the Mojo needs reports to run, false otherwise.public void setRequiresReports(boolean requiresReports)
requiresReports - true if the Mojo needs reports to run, false otherwise.public void setExecuteGoal(java.lang.String executeGoal)
executeGoal - the new invocation goal of the Mojopublic java.lang.String getExecuteGoal()