Interface MojoDescriptorExtractor
-
- All Known Implementing Classes:
AbstractScriptedMojoDescriptorExtractor
public interface MojoDescriptorExtractor- Author:
- jdcasey
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.List<org.apache.maven.plugin.descriptor.MojoDescriptor>execute(PluginToolsRequest request)Execute the mojo extraction.GroupKeygetGroupKey()Returns theGroupKeyof extractor, asMojoScannerwill execute them grouped, and ordered within groups.java.lang.StringgetName()Returns the "name" (id) of the extractor.default java.lang.StringgetRequiredJavaVersion()The default implementation returnsnull.booleanisDeprecated()Returnstrueif extractor is deprecated.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Returns the "name" (id) of the extractor.- Since:
- 3.7.0
-
isDeprecated
boolean isDeprecated()
Returnstrueif extractor is deprecated.- Since:
- 3.7.0
-
getGroupKey
GroupKey getGroupKey()
Returns theGroupKeyof extractor, asMojoScannerwill execute them grouped, and ordered within groups. Must never returnnull.- Since:
- 3.7.0
-
execute
java.util.List<org.apache.maven.plugin.descriptor.MojoDescriptor> execute(PluginToolsRequest request) throws ExtractionException, org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
Execute the mojo extraction.- Parameters:
request- ThePluginToolsRequestcontaining 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
default java.lang.String getRequiredJavaVersion()
The default implementation returnsnull.- Returns:
- the required java version or
nullif unknown - Since:
- 3.8.0
-
-