@Named @Singleton public class DefaultMojoAnnotationsScanner extends org.codehaus.plexus.logging.AbstractLogEnabled implements MojoAnnotationsScanner
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_V3 |
static String |
COMPONENT_V4 |
static String |
EXECUTE_V3 |
static String |
EXECUTE_V4 |
static String |
MOJO_V3 |
static String |
MOJO_V4 |
static String |
MVN4_API |
static String |
PARAMETER_V3 |
static String |
PARAMETER_V4 |
CLASS_LEVEL_ANNOTATIONS, FIELD_LEVEL_ANNOTATIONS, METHOD_LEVEL_ANNOTATIONS, ROLE, V4_API_ANNOTATIONS_PACKAGE, V4_API_PLUGIN_PACKAGE
Constructor and Description |
---|
DefaultMojoAnnotationsScanner() |
Modifier and Type | Method and Description |
---|---|
protected void |
analyzeVisitors(MojoClassVisitor mojoClassVisitor) |
protected void |
populateAnnotationContent(Object content,
MojoAnnotationVisitor mojoAnnotationVisitor) |
protected void |
scan(Map<String,MojoAnnotatedClass> mojoAnnotatedClasses,
File source,
List<String> includePatterns,
org.apache.maven.artifact.Artifact artifact,
boolean excludeMojo) |
Map<String,MojoAnnotatedClass> |
scan(MojoAnnotationsScannerRequest request)
Scan classes for mojo annotations.
|
protected Map<String,MojoAnnotatedClass> |
scanArchive(File archiveFile,
org.apache.maven.artifact.Artifact artifact,
boolean excludeMojo) |
protected Map<String,MojoAnnotatedClass> |
scanDirectory(File classDirectory,
List<String> includePatterns,
org.apache.maven.artifact.Artifact artifact,
boolean excludeMojo) |
public static final String MVN4_API
public static final String MOJO_V4
public static final String EXECUTE_V4
public static final String PARAMETER_V4
public static final String COMPONENT_V4
public static final String EXECUTE_V3
public static final String PARAMETER_V3
public static final String COMPONENT_V3
public DefaultMojoAnnotationsScanner()
public Map<String,MojoAnnotatedClass> scan(MojoAnnotationsScannerRequest request) throws ExtractionException
MojoAnnotationsScanner
scan
in interface MojoAnnotationsScanner
ExtractionException
protected void scan(Map<String,MojoAnnotatedClass> mojoAnnotatedClasses, File source, List<String> includePatterns, org.apache.maven.artifact.Artifact artifact, boolean excludeMojo) throws IOException, ExtractionException
IOException
ExtractionException
protected Map<String,MojoAnnotatedClass> scanArchive(File archiveFile, org.apache.maven.artifact.Artifact artifact, boolean excludeMojo) throws IOException, ExtractionException
archiveFile
- artifact
- excludeMojo
- for dependencies, we exclude Mojo annotations foundIOException
ExtractionException
protected Map<String,MojoAnnotatedClass> scanDirectory(File classDirectory, List<String> includePatterns, org.apache.maven.artifact.Artifact artifact, boolean excludeMojo) throws IOException, ExtractionException
classDirectory
- includePatterns
- artifact
- excludeMojo
- for dependencies, we exclude Mojo annotations foundIOException
ExtractionException
protected void populateAnnotationContent(Object content, MojoAnnotationVisitor mojoAnnotationVisitor) throws org.codehaus.plexus.util.reflection.ReflectorException
org.codehaus.plexus.util.reflection.ReflectorException
protected void analyzeVisitors(MojoClassVisitor mojoClassVisitor) throws ExtractionException
ExtractionException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.