Class AbstractAnalyzeAnnotationProcessingMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Direct Known Subclasses:
    AnalyzeAnnotationProcessingMojo, AnalyzeTestAnnotationProcessingMojo

    public abstract class AbstractAnalyzeAnnotationProcessingMojo
    extends AbstractTentackleAnnotationProcessingMojo
    Generates code and meta-information prior to wurbeling and compiling the sources.

    Processes up all annotations annotated with @Analyze, such as @Service.
    Processing results are either written to files in analyzeDir or placed on heap for being picked up by wurblets, depending on the handler implementation for each annotation.

    Author:
    harald
    • Field Detail

      • index

        @Parameter
        protected String index
        Optional generated index holding the generated services.
        Example: <index>META-INF/RESOURCE-INDEX.LIST</index>
    • Constructor Detail

      • AbstractAnalyzeAnnotationProcessingMojo

        public AbstractAnalyzeAnnotationProcessingMojo()
        Creates a mojo.
    • Method Detail

      • setMojoParameters

        public void setMojoParameters​(File sourceDir,
                                      File analyzeDir,
                                      File servicesDir,
                                      List<String> classpathElements)
                               throws org.apache.maven.plugin.MojoFailureException
        Sets the mojo parameters.
        Parameters:
        sourceDir - the directory holding the sources to be processed
        analyzeDir - the directory holding the analyze results
        servicesDir - the directory holding the generated services
        classpathElements - the mavenProject classpath
        Throws:
        org.apache.maven.plugin.MojoFailureException - if classloader could not be created
      • initializeProcessor

        protected void initializeProcessor​(org.tentackle.buildsupport.AbstractTentackleProcessor processor,
                                           File srcDir)
                                    throws org.apache.maven.plugin.MojoFailureException
        Overrides:
        initializeProcessor in class AbstractTentackleAnnotationProcessingMojo
        Throws:
        org.apache.maven.plugin.MojoFailureException
      • finishExecute

        public void finishExecute()
                           throws org.apache.maven.plugin.MojoExecutionException,
                                  org.apache.maven.plugin.MojoFailureException
        Overrides:
        finishExecute in class AbstractTentackleMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException