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 Summary

      Fields 
      Modifier and Type Field Description
      protected java.io.File analyzeDir
      Directory analyze results.
      protected java.util.List<java.lang.String> classpathElements
      Project classpath.
      protected java.io.File servicesDir
      Directory generated services.
      protected java.io.File sourceDir
      Directory holding the sources to be processed.
      Defaults to all java test sources of the current project.
      • Fields inherited from class org.tentackle.maven.AbstractTentackleAnnotationProcessingMojo

        compilerArgs, compilerArgument, encoding, filesets, processors, showCompileOutput
      • Fields inherited from class org.tentackle.maven.AbstractTentackleMojo

        charset, JDK_TOOLCHAIN, resourceDirs, verbosity, verbosityLevel
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void prepareExecute()  
      • Methods inherited from class org.tentackle.maven.AbstractTentackleAnnotationProcessingMojo

        addProcessor, executeImpl, getCompileErrorLog, getProcessingClassloader, getTotalCompileErrors, getTotalErrors, initializeProcessors, setMojoParameters
      • Methods inherited from class org.tentackle.maven.AbstractTentackleMojo

        determineEncoding, determineJavaToolVersion, determineVerbosity, execute, findResourceDirs, getCanonicalPath, getMajorVersion, getMavenProject, getMavenSession, getMojoExecution, getPathRelativeToBasedir, getResourceDirName, getSettings, getSettingsDecrypter, getToolchain, getToolchain, getToolchain, getToolchainManager, getToolFinder, isExecutionRecursive, isSkippedByDefault, loadResourceFileIntoString
      • Methods inherited from class org.apache.maven.plugin.AbstractMojo

        getLog, getPluginContext, setLog, setPluginContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • sourceDir

        @Parameter(defaultValue="${project.build.testSourceDirectory}",
                   property="wurbel.testSourceDir",
                   required=true)
        protected java.io.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 java.util.List<java.lang.String> classpathElements
        Project classpath.
      • analyzeDir

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

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

      • AnalyzeTestAnnotationProcessingMojo

        public AnalyzeTestAnnotationProcessingMojo()
    • Method Detail

      • prepareExecute

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