@Component(role=org.apache.maven.tools.plugin.extractor.MojoDescriptorExtractor.class, hint="java") public class JavaMojoDescriptorExtractor extends org.codehaus.plexus.logging.AbstractLogEnabled implements MojoDescriptorExtractor, JavaMojoAnnotation
MojoDescriptorROLEAGGREGATOR, DESCRIPTION, EXECUTION_STATEGY, IMPLEMENTATION, INHERIT_BY_DEFAULT, INSTANTIATION_STRATEGY, LANGUAGE, MULTI_EXECUTION_STRATEGY, PARAMETER_NAME, PARAMETER_PROPERTY, REQUIRES_DEPENDENCY_COLLECTION, REQUIRES_DEPENDENCY_RESOLUTION, REQUIRES_DIRECT_INVOCATION, REQUIRES_ONLINE, REQUIRES_PROJECT, REQUIRES_REPORTS, THREAD_SAFE| Constructor and Description |
|---|
JavaMojoDescriptorExtractor() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.maven.plugin.descriptor.MojoDescriptor |
createMojoDescriptor(com.thoughtworks.qdox.model.JavaClass javaClass) |
protected com.thoughtworks.qdox.model.JavaClass[] |
discoverClasses(PluginToolsRequest request) |
List<org.apache.maven.plugin.descriptor.MojoDescriptor> |
execute(PluginToolsRequest request) |
protected void |
validate(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor) |
protected void |
validateParameter(org.apache.maven.plugin.descriptor.Parameter parameter,
int i) |
public static final String MAVEN_PLUGIN_INSTANTIATION
JavaMojoAnnotation.INSTANTIATION_STRATEGY instead of.public static final String CONFIGURATOR
JavaMojoAnnotation.CONFIGURATOR instead of.public static final String PARAMETER
JavaMojoAnnotation.PARAMETER instead of.public static final String PARAMETER_EXPRESSION
JavaMojoAnnotation.PARAMETER_EXPRESSION instead of.public static final String PARAMETER_DEFAULT_VALUE
JavaMojoAnnotation.PARAMETER_DEFAULT_VALUE instead of.public static final String PARAMETER_ALIAS
JavaMojoAnnotation.PARAMETER_ALIAS instead of.public static final String SINCE
JavaMojoAnnotation.SINCE instead of.public static final String PARAMETER_IMPLEMENTATION
JavaMojoAnnotation.PARAMETER_IMPLEMENTATION instead of.public static final String REQUIRED
JavaMojoAnnotation.REQUIRED instead of.public static final String DEPRECATED
JavaMojoAnnotation.DEPRECATED instead of.public static final String READONLY
JavaMojoAnnotation.READONLY instead of.public static final String GOAL
JavaMojoAnnotation.GOAL instead of.public static final String PHASE
JavaMojoAnnotation.PHASE instead of.public static final String EXECUTE
JavaMojoAnnotation.EXECUTE instead of.public static final String EXECUTE_LIFECYCLE
JavaMojoAnnotation.EXECUTE_LIFECYCLE instead of.public static final String EXECUTE_PHASE
JavaMojoAnnotation.EXECUTE_PHASE instead of.public static final String EXECUTE_GOAL
JavaMojoAnnotation.EXECUTE_GOAL instead of.public static final String GOAL_DESCRIPTION
JavaMojoAnnotation.DESCRIPTION instead of.public static final String GOAL_REQUIRES_DEPENDENCY_RESOLUTION
JavaMojoAnnotation.REQUIRES_DEPENDENCY_RESOLUTION instead of.public static final String GOAL_REQUIRES_PROJECT
JavaMojoAnnotation.REQUIRES_PROJECT instead of.public static final String GOAL_REQUIRES_REPORTS
JavaMojoAnnotation.REQUIRES_REPORTS instead of.public static final String GOAL_IS_AGGREGATOR
JavaMojoAnnotation.AGGREGATOR instead of.public static final String GOAL_REQUIRES_ONLINE
JavaMojoAnnotation.REQUIRES_ONLINE instead of.public static final String GOAL_INHERIT_BY_DEFAULT
JavaMojoAnnotation.INHERIT_BY_DEFAULT instead of.public static final String GOAL_MULTI_EXECUTION_STRATEGY
JavaMojoAnnotation.MULTI_EXECUTION_STRATEGY instead of.public static final String GOAL_REQUIRES_DIRECT_INVOCATION
JavaMojoAnnotation.REQUIRES_DIRECT_INVOCATION instead of.public static final String COMPONENT
JavaMojoAnnotation.COMPONENT instead of.public static final String COMPONENT_ROLE
JavaMojoAnnotation.COMPONENT_ROLE instead of.public static final String COMPONENT_ROLEHINT
JavaMojoAnnotation.COMPONENT_ROLEHINT instead of.protected void validateParameter(org.apache.maven.plugin.descriptor.Parameter parameter,
int i)
throws org.apache.maven.plugin.descriptor.InvalidParameterException
parameter - not nulli - positive numberorg.apache.maven.plugin.descriptor.InvalidParameterException - if anyprotected org.apache.maven.plugin.descriptor.MojoDescriptor createMojoDescriptor(com.thoughtworks.qdox.model.JavaClass javaClass)
throws org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
javaClass - not nullorg.apache.maven.plugin.descriptor.InvalidPluginDescriptorException - if anypublic List<org.apache.maven.plugin.descriptor.MojoDescriptor> execute(PluginToolsRequest request) throws ExtractionException, org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
execute in interface MojoDescriptorExtractorExtractionExceptionorg.apache.maven.plugin.descriptor.InvalidPluginDescriptorExceptionprotected com.thoughtworks.qdox.model.JavaClass[] discoverClasses(PluginToolsRequest request)
request - The plugin request.protected void validate(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor)
throws org.apache.maven.plugin.descriptor.InvalidParameterException
mojoDescriptor - not nullorg.apache.maven.plugin.descriptor.InvalidParameterException - if anyCopyright © 2004–2014 The Apache Software Foundation. All rights reserved.