Package org.tentackle.maven.plugin
Class AnalyzeAnnotationProcessingMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.tentackle.maven.AbstractTentackleMojo
-
- org.tentackle.maven.AbstractTentackleAnnotationProcessingMojo
-
- org.tentackle.maven.plugin.AbstractAnalyzeAnnotationProcessingMojo
-
- org.tentackle.maven.plugin.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 AbstractAnalyzeAnnotationProcessingMojoGenerates 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 inanalyzeDiror 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 FileanalyzeDirDirectory for the analyze results.protected List<String>classpathElementsProject classpath.protected FileservicesDirDirectory for the generated services.protected FilesourceDirDirectory holding the sources to be processed.
Defaults to all java sources of the current project.-
Fields inherited from class org.tentackle.maven.plugin.AbstractAnalyzeAnnotationProcessingMojo
index
-
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, minLogLevel, resourceDirs, verbosity, verbosityLevel
-
-
Constructor Summary
Constructors Constructor Description AnalyzeAnnotationProcessingMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprepareExecute()-
Methods inherited from class org.tentackle.maven.plugin.AbstractAnalyzeAnnotationProcessingMojo
cleanupProcessors, createMissingDirs, filterFileNames, finishExecute, initializeProcessor, setMojoParameters, validate
-
Methods inherited from class org.tentackle.maven.AbstractTentackleAnnotationProcessingMojo
addProcessor, executeImpl, getCompileErrorLog, getProcessingClassloader, getTotalCompileErrors, getTotalErrors, initializeProcessors, setMojoParameters
-
Methods inherited from class org.tentackle.maven.AbstractTentackleMojo
createPackageMap, determineEncoding, determineJavaToolVersion, determineVerbosity, execute, findResourceDirs, getCanonicalPath, getHostName, getMajorVersion, getMavenProject, getMavenSession, getMojoExecution, getPathRelativeToBasedir, getResourceDirName, getSettings, getSettingsDecrypter, getToolchain, getToolchain, getToolchain, getToolchainManager, getToolFinder, installJavaLoggingHandler, isExecutionRecursive, isSkippedByDefault, loadResourceFileIntoString
-
-
-
-
Field Detail
-
sourceDir
@Parameter(defaultValue="${project.build.sourceDirectory}", property="wurbel.sourceDir", required=true) protected File sourceDirDirectory 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> classpathElementsProject classpath.
-
analyzeDir
@Parameter(defaultValue="${project.build.directory}/analyze", property="wurbel.analyzeDir", required=true) protected File analyzeDirDirectory for the analyze results.
-
servicesDir
@Parameter(defaultValue="${project.build.directory}/generated-resources/services", property="tentackle.serviceDir", required=true) protected File servicesDirDirectory for the generated services.
-
-
Method Detail
-
prepareExecute
public void prepareExecute() throws org.apache.maven.plugin.MojoFailureException- Overrides:
prepareExecutein classAbstractTentackleMojo- Throws:
org.apache.maven.plugin.MojoFailureException
-
-