Class DefaultMojoScanner
- java.lang.Object
-
- org.codehaus.plexus.logging.AbstractLogEnabled
-
- org.apache.maven.tools.plugin.scanner.DefaultMojoScanner
-
- All Implemented Interfaces:
MojoScanner,org.codehaus.plexus.logging.LogEnabled
@Named public class DefaultMojoScanner extends org.codehaus.plexus.logging.AbstractLogEnabled implements MojoScanner
- Author:
- jdcasey
-
-
Constructor Summary
Constructors Constructor Description DefaultMojoScanner()Empty constructorDefaultMojoScanner(Map<String,MojoDescriptorExtractor> extractors)Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpopulatePluginDescriptor(PluginToolsRequest request)voidsetActiveExtractors(Set<String> extractors)Sets the active extractors.
-
-
-
Constructor Detail
-
DefaultMojoScanner
@Inject public DefaultMojoScanner(Map<String,MojoDescriptorExtractor> extractors)
Default constructor- Parameters:
extractors- not null
-
DefaultMojoScanner
public DefaultMojoScanner()
Empty constructor
-
-
Method Detail
-
populatePluginDescriptor
public void populatePluginDescriptor(PluginToolsRequest request) throws ExtractionException, org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
- Specified by:
populatePluginDescriptorin interfaceMojoScanner- Parameters:
request- not null- Throws:
ExtractionException- if anyorg.apache.maven.plugin.descriptor.InvalidPluginDescriptorException- if any
-
setActiveExtractors
public void setActiveExtractors(Set<String> extractors)
Description copied from interface:MojoScannerSets the active extractors.
Only the specified extractors will be used, all others will be skipped.
- Specified by:
setActiveExtractorsin interfaceMojoScanner- Parameters:
extractors- The names of the active extractors. If this parameter isnull, all the scanner's extractors are considered active. Set entries that arenullor empty ("") will be ignored.
-
-