| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.plexus.component.repository.ComponentDescriptor
org.apache.maven.plugin.descriptor.MojoDescriptor
public class MojoDescriptor
The bean containing the Mojo descriptor.
 
 For more information about the usage tag, have a look to:
 http://maven.apache.org/developers/mojo-api-specification.html
| Field Summary | |
|---|---|
static String | 
MAVEN_PLUGIN
The Plexus component type  | 
static String | 
MULTI_PASS_EXEC_STRATEGY
"always" execution strategy  | 
static String | 
SINGLE_PASS_EXEC_STRATEGY
"once-per-session" execution strategy  | 
| Constructor Summary | |
|---|---|
MojoDescriptor()
Default constructor.  | 
|
| Methods inherited from class org.codehaus.plexus.component.repository.ComponentDescriptor | 
|---|
addRequirement, getAlias, getComponentComposer, getComponentConfigurator, getComponentFactory, getComponentKey, getComponentProfile, getComponentSetDescriptor, getConfiguration, getDependencies, getDescription, getHumanReadableKey, getImplementation, getInstantiationStrategy, getLifecycleHandler, getRequirements, getVersion, hasConfiguration, isIsolatedRealm, setAlias, setComponentComposer, setComponentConfigurator, setComponentFactory, setComponentProfile, setComponentSetDescriptor, setComponentType, setConfiguration, setDescription, setImplementation, setInstantiationStrategy, setIsolatedRealm, setLifecycleHandler, setRole, setRoleHint, setVersion, toString | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static String MAVEN_PLUGIN
public static final String SINGLE_PASS_EXEC_STRATEGY
public static final String MULTI_PASS_EXEC_STRATEGY
| Constructor Detail | 
|---|
public MojoDescriptor()
| Method Detail | 
|---|
public String getLanguage()
javapublic void setLanguage(String language)
language - the new languagepublic String getDeprecated()
true if the Mojo is deprecated, false otherwise.public void setDeprecated(String deprecated)
deprecated - true to deprecate the Mojo, false otherwise.public List getParameters()
public void setParameters(List parameters)
                   throws DuplicateParameterException
parameters - the new list of parameters
DuplicateParameterException - if any
public void addParameter(Parameter parameter)
                  throws DuplicateParameterException
parameter - add a new parameter
DuplicateParameterException - if anypublic Map getParameterMap()
public void setDependencyResolutionRequired(String requiresDependencyResolution)
requiresDependencyResolution - the new required dependencies in a specified scopepublic 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 String getPhase()
public void setPhase(String phase)
phase - the new binded phase name of the Mojopublic String getSince()
public void setSince(String since)
since - the new version when the Mojo was added to the APIpublic String getGoal()
public void setGoal(String goal)
goal - The new goal name of the Mojopublic String getExecutePhase()
public void setExecutePhase(String executePhase)
executePhase - the new invocation phase of the Mojopublic boolean alwaysExecute()
true if the Mojo uses always for the executionStrategypublic String getExecutionStrategy()
public void setExecutionStrategy(String executionStrategy)
executionStrategy - the new execution strategypublic org.codehaus.plexus.configuration.PlexusConfiguration getMojoConfiguration()
public void setMojoConfiguration(org.codehaus.plexus.configuration.PlexusConfiguration mojoConfiguration)
mojoConfiguration - a new mojo configurationpublic String getRole()
getRole in class org.codehaus.plexus.component.repository.ComponentDescriptorpublic String getRoleHint()
getRoleHint in class org.codehaus.plexus.component.repository.ComponentDescriptorpublic String getId()
public String getFullGoalName()
PluginDescriptor.getGoalPrefix(), 
getGoal()public String getComponentType()
getComponentType in class org.codehaus.plexus.component.repository.ComponentDescriptorpublic 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(Object object)
equals in class org.codehaus.plexus.component.repository.ComponentDescriptorpublic int hashCode()
hashCode in class org.codehaus.plexus.component.repository.ComponentDescriptorpublic String getExecuteLifecycle()
public void setExecuteLifecycle(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(String executeGoal)
executeGoal - the new invocation goal of the Mojopublic String getExecuteGoal()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||