org.apache.maven.tools.plugin.extractor
Interface MojoDescriptorExtractor

All Known Implementing Classes:
AbstractScriptedMojoDescriptorExtractor, AntMojoDescriptorExtractor, BeanshellMojoDescriptorExtractor, JavaAnnotationsMojoDescriptorExtractor, JavaMojoDescriptorExtractor

public interface MojoDescriptorExtractor

Version:
$Id: MojoDescriptorExtractor.java 1133707 2011-06-09 08:28:59Z stephenc $
Author:
jdcasey

Field Summary
static String ROLE
          Plexus role for lookup
 
Method Summary
 List<org.apache.maven.plugin.descriptor.MojoDescriptor> execute(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
          Deprecated. Use execute(PluginToolsRequest) instead. Provided for backward compatibility with maven-plugin-plugin < 2.5.
 List<org.apache.maven.plugin.descriptor.MojoDescriptor> execute(PluginToolsRequest request)
          Execute the mojo extraction.
 

Field Detail

ROLE

static final String ROLE
Plexus role for lookup

Method Detail

execute

List<org.apache.maven.plugin.descriptor.MojoDescriptor> execute(org.apache.maven.project.MavenProject project,
                                                                org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
                                                                throws ExtractionException,
                                                                       org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
Deprecated. Use execute(PluginToolsRequest) instead. Provided for backward compatibility with maven-plugin-plugin < 2.5.

Execute the mojo extraction.

Returns:
a list of mojo descriptors.
Throws:
ExtractionException - if any
org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException - if any

execute

List<org.apache.maven.plugin.descriptor.MojoDescriptor> execute(PluginToolsRequest request)
                                                                throws ExtractionException,
                                                                       org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
Execute the mojo extraction.

Parameters:
request - The PluginToolsRequest containing information for the extraction process.
Returns:
a list of mojo descriptors.
Throws:
ExtractionException - if any
org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException - if any
Since:
2.5


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.