Interface MojoDescriptorExtractor

All Known Implementing Classes:
AbstractScriptedMojoDescriptorExtractor

public interface MojoDescriptorExtractor
Author:
jdcasey
  • Method Details

    • getName

      Returns the "name" (id) of the extractor.
      Since:
      3.7.0
    • isDeprecated

      boolean isDeprecated()
      Returns true if extractor is deprecated.
      Since:
      3.7.0
    • getGroupKey

      Returns the GroupKey of extractor, as MojoScanner will execute them grouped, and ordered within groups. Must never return null.
      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 - The PluginToolsRequest containing information for the extraction process.
      Returns:
      a list of mojo descriptors. These may return HTML values for some fields.
      Throws:
      ExtractionException - if any
      org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException - if any
      Since:
      2.5
    • getRequiredJavaVersion

      The default implementation returns null.
      Returns:
      the required java version or null if unknown
      Since:
      3.8.0