@Mojo(name="analyze",
defaultPhase=GENERATE_SOURCES,
requiresDependencyResolution=COMPILE)
public class AnalyzeAnnotationProcessingMojo
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 for the analyze results.
|
protected List<String> |
classpathElements
Project classpath.
|
protected File |
servicesDir
Directory for the generated services.
|
protected File |
sourceDir
Directory holding the sources to be processed.
Defaults to all java sources of the current project. |
indexencoding, processors, showCompileOutputcharset, filesets, mavenProject, resourceDirs, verbosity, verbosityLevel| Constructor and Description |
|---|
AnalyzeAnnotationProcessingMojo() |
| 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.sourceDirectory}",
property="wurbel.sourceDir",
required=true)
protected File sourceDir
@Parameter(defaultValue="${project.compileClasspathElements}",
readonly=true,
required=true)
protected List<String> classpathElements
@Parameter(defaultValue="${project.build.directory}/analyze",
property="wurbel.analyzeDir",
required=true)
protected File analyzeDir
@Parameter(defaultValue="${project.build.directory}/generated-resources/services",
property="tentackle.serviceDir",
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