Class AnalyzeTestAnnotationProcessingMojo

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

@Mojo(name="test-analyze", defaultPhase=GENERATE_TEST_SOURCES, requiresDependencyResolution=TEST) public class AnalyzeTestAnnotationProcessingMojo extends AbstractAnalyzeAnnotationProcessingMojo
Generates code and meta-information prior to wurbeling and compiling the test 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.testSourceDirectory}", property="wurbel.testSourceDir", required=true) protected File sourceDir
      Directory holding the sources to be processed.
      Defaults to all java test sources of the current project. If this is not desired, filesets must be used.
    • classpathElements

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

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

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

    • AnalyzeTestAnnotationProcessingMojo

      public AnalyzeTestAnnotationProcessingMojo()
  • Method Details

    • prepareExecute

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