@Mojo(name="test-analyze",
defaultPhase=GENERATE_TEST_SOURCES,
requiresDependencyResolution=TEST)
public class AnalyzeTestAnnotationProcessingMojo
extends AbstractAnalyzeAnnotationProcessingMojo
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.
| Modifier and Type | Field and Description |
|---|---|
protected File |
analyzeDir
Directory analyze results.
|
protected List<String> |
classpathElements
Project classpath.
|
protected File |
servicesDir
Directory generated services.
|
protected File |
sourceDir
Directory holding the sources to be processed.
Defaults to all java test sources of the current project. |
indexencoding, processors, showCompileOutputcharset, filesets, mavenProject, resourceDirs, verbosity, verbosityLevel| Constructor and Description |
|---|
AnalyzeTestAnnotationProcessingMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
prepareExecute()
Prepares the execution.
Invoked before validate(). |
cleanupProcessors, createMissingDirs, filterFileNames, finishExecute, initializeProcessor, setMojoParameters, validateaddProcessor, execute, getCompileErrorLog, getProcessingClassloader, getTotalCompileErrors, getTotalErrors, initializeProcessors, setMojoParametersdetermineEncoding, determineVerbosity, findResourceDirs, getCanonicalPath, getPathRelativeToBasedir, getResourceDirName@Parameter(defaultValue="${project.build.testSourceDirectory}",
property="wurbel.testSourceDir",
required=true)
protected File sourceDir
@Parameter(defaultValue="${project.testClasspathElements}",
readonly=true,
required=true)
protected List<String> classpathElements
@Parameter(defaultValue="${project.build.directory}/test-analyze",
property="wurbel.testAnalyzeDir",
required=true)
protected File analyzeDir
@Parameter(defaultValue="${project.build.directory}/generated-test-resources/services",
property="tentackle.testServiceDir",
required=true)
protected File servicesDir
public void prepareExecute()
throws org.apache.maven.plugin.MojoFailureException
AbstractTentackleAnnotationProcessingMojoprepareExecute in class AbstractTentackleAnnotationProcessingMojoorg.apache.maven.plugin.MojoFailureException - if an expected problem occurs.Tentackle - a domain driven enterprise framework