Class AnalyzeAnnotationProcessingMojo

All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="analyze", defaultPhase=GENERATE_SOURCES, requiresDependencyResolution=COMPILE) public class AnalyzeAnnotationProcessingMojo extends AbstractAnalyzeAnnotationProcessingMojo
Generates code and meta-information prior to wurbeling and compiling the sources.

Processes 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 Details

    • sourceDir

      @Parameter(defaultValue="${project.build.sourceDirectory}", property="wurbel.sourceDir", required=true) protected File sourceDir
      Directory holding the sources to be processed.
      Defaults to all java sources of the current project. If this is not desired, filesets must be used.
    • classpathElements

      @Parameter(defaultValue="${project.compileClasspathElements}", readonly=true, required=true) protected List<String> classpathElements
      Project classpath.
    • analyzeDir

      @Parameter(defaultValue="${project.build.directory}/analyze", property="wurbel.analyzeDir", required=true) protected File analyzeDir
      Directory for the analyze-results.
    • servicesDir

      @Parameter(defaultValue="${project.build.directory}/generated-resources/services", property="tentackle.serviceDir", required=true) protected File servicesDir
      Directory for the generated services.
  • Constructor Details

    • AnalyzeAnnotationProcessingMojo

      public AnalyzeAnnotationProcessingMojo()
  • Method Details

    • prepareExecute

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