@Component(role=MojoAnnotationsScanner.class) public class DefaultMojoAnnotationsScanner extends org.codehaus.plexus.logging.AbstractLogEnabled implements MojoAnnotationsScanner
CLASS_LEVEL_ANNOTATIONS, FIELD_LEVEL_ANNOTATIONS, ROLE
Constructor and Description |
---|
DefaultMojoAnnotationsScanner() |
Modifier and Type | Method and Description |
---|---|
protected void |
analyzeVisitors(MojoClassVisitor mojoClassVisitor) |
protected void |
populateAnnotationContent(java.lang.Object content,
MojoAnnotationVisitor mojoAnnotationVisitor) |
protected void |
scan(java.util.Map<java.lang.String,MojoAnnotatedClass> mojoAnnotatedClasses,
java.io.File source,
java.util.List<java.lang.String> includePatterns,
org.apache.maven.artifact.Artifact artifact,
boolean excludeMojo) |
java.util.Map<java.lang.String,MojoAnnotatedClass> |
scan(MojoAnnotationsScannerRequest request)
Scan classes for mojo annotations.
|
protected java.util.Map<java.lang.String,MojoAnnotatedClass> |
scanArchive(java.io.File archiveFile,
org.apache.maven.artifact.Artifact artifact,
boolean excludeMojo) |
protected java.util.Map<java.lang.String,MojoAnnotatedClass> |
scanDirectory(java.io.File classDirectory,
java.util.List<java.lang.String> includePatterns,
org.apache.maven.artifact.Artifact artifact,
boolean excludeMojo) |
public java.util.Map<java.lang.String,MojoAnnotatedClass> scan(MojoAnnotationsScannerRequest request) throws org.apache.maven.tools.plugin.extractor.ExtractionException
MojoAnnotationsScanner
scan
in interface MojoAnnotationsScanner
org.apache.maven.tools.plugin.extractor.ExtractionException
protected void scan(java.util.Map<java.lang.String,MojoAnnotatedClass> mojoAnnotatedClasses, java.io.File source, java.util.List<java.lang.String> includePatterns, org.apache.maven.artifact.Artifact artifact, boolean excludeMojo) throws java.io.IOException, org.apache.maven.tools.plugin.extractor.ExtractionException
java.io.IOException
org.apache.maven.tools.plugin.extractor.ExtractionException
protected java.util.Map<java.lang.String,MojoAnnotatedClass> scanArchive(java.io.File archiveFile, org.apache.maven.artifact.Artifact artifact, boolean excludeMojo) throws java.io.IOException, org.apache.maven.tools.plugin.extractor.ExtractionException
archiveFile
- artifact
- excludeMojo
- for dependencies, we exclude Mojo annotations foundjava.io.IOException
org.apache.maven.tools.plugin.extractor.ExtractionException
protected java.util.Map<java.lang.String,MojoAnnotatedClass> scanDirectory(java.io.File classDirectory, java.util.List<java.lang.String> includePatterns, org.apache.maven.artifact.Artifact artifact, boolean excludeMojo) throws java.io.IOException, org.apache.maven.tools.plugin.extractor.ExtractionException
classDirectory
- includePatterns
- artifact
- excludeMojo
- for dependencies, we exclude Mojo annotations foundjava.io.IOException
org.apache.maven.tools.plugin.extractor.ExtractionException
protected void populateAnnotationContent(java.lang.Object content, MojoAnnotationVisitor mojoAnnotationVisitor) throws org.codehaus.plexus.util.reflection.ReflectorException
org.codehaus.plexus.util.reflection.ReflectorException
protected void analyzeVisitors(MojoClassVisitor mojoClassVisitor) throws org.apache.maven.tools.plugin.extractor.ExtractionException
org.apache.maven.tools.plugin.extractor.ExtractionException