Interface MojoDescriptorExtractor
- All Known Implementing Classes:
AbstractScriptedMojoDescriptorExtractor
,JavaAnnotationsMojoDescriptorExtractor
public interface MojoDescriptorExtractor
- Author:
- jdcasey
-
Method Summary
Modifier and TypeMethodDescriptionList
<org.apache.maven.plugin.descriptor.MojoDescriptor> execute
(PluginToolsRequest request) Execute the mojo extraction.Returns theGroupKey
of extractor, asMojoScanner
will execute them grouped, and ordered within groups.getName()
Returns the "name" (id) of the extractor.default String
The default implementation returnsnull
.boolean
Returnstrue
if extractor is deprecated.
-
Method Details
-
getName
Returns the "name" (id) of the extractor.- Since:
- 3.7.0
-
isDeprecated
boolean isDeprecated()Returnstrue
if extractor is deprecated.- Since:
- 3.7.0
-
getGroupKey
Returns theGroupKey
of extractor, asMojoScanner
will execute them grouped, and ordered within groups. Must never returnnull
.- Since:
- 3.7.0
-
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
- ThePluginToolsRequest
containing information for the extraction process.- Returns:
- a list of mojo descriptors. These may return HTML values for some fields.
- Throws:
ExtractionException
- if anyorg.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
- if any- Since:
- 2.5
-
getRequiredJavaVersion
The default implementation returnsnull
.- Returns:
- the required java version or
null
if unknown - Since:
- 3.8.0
-