Package org.tentackle.maven.plugin
Class AnalyzeTestAnnotationProcessingMojo
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.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
FieldsModifier and TypeFieldDescriptionprotected FileDirectory analyze results.Project classpath.protected FileDirectory generated services.protected FileDirectory holding the sources to be processed.
Defaults to all java test sources of the current project.Fields inherited from class org.tentackle.maven.plugin.AbstractAnalyzeAnnotationProcessingMojo
indexFields inherited from class org.tentackle.maven.AbstractTentackleAnnotationProcessingMojo
compilerArgs, compilerArgument, encoding, filesets, processors, showCompileOutputFields inherited from class org.tentackle.maven.AbstractTentackleMojo
charset, JDK_TOOLCHAIN, minLogLevel, verbosity, verbosityLevelFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.tentackle.maven.plugin.AbstractAnalyzeAnnotationProcessingMojo
cleanupProcessors, createMissingDirs, filterFileNames, finishExecute, initializeProcessor, setMojoParameters, validateMethods inherited from class org.tentackle.maven.AbstractTentackleAnnotationProcessingMojo
addProcessor, executeImpl, getCompileErrorLog, getProcessingClassloader, getTotalCompileErrors, getTotalErrors, initializeProcessors, setMojoParametersMethods inherited from class org.tentackle.maven.AbstractTentackleMojo
createFileSetManager, createPackageMap, determineEncoding, determineJavaToolVersion, determineVerbosity, execute, getCanonicalPath, getHostName, getIncludedFiles, getJavaHome, getMajorVersion, getMavenProject, getMavenSession, getMojoExecution, getPathRelativeToBasedir, getResourceDir, getResourceDirs, getSettings, getSettingsDecrypter, getToolchain, getToolchain, getToolchain, getToolchainManager, getToolFinder, installJavaLoggingHandler, isExecutionRecursive, isSkippedByDefault, loadResourceFileIntoString, toDescriptorNameMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
sourceDir
@Parameter(defaultValue="${project.build.testSourceDirectory}", property="wurbel.testSourceDir", required=true) protected File sourceDirDirectory 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> classpathElementsProject classpath. -
analyzeDir
@Parameter(defaultValue="${project.build.directory}/test-analyze", property="wurbel.testAnalyzeDir", required=true) protected File analyzeDirDirectory analyze results. -
servicesDir
@Parameter(defaultValue="${project.build.directory}/generated-test-resources/services", property="tentackle.testServiceDir", required=true) protected File servicesDirDirectory generated services.
-
-
Constructor Details
-
AnalyzeTestAnnotationProcessingMojo
public AnalyzeTestAnnotationProcessingMojo()
-
-
Method Details
-
prepareExecute
public void prepareExecute() throws org.apache.maven.plugin.MojoFailureException- Overrides:
prepareExecutein classAbstractTentackleMojo- Throws:
org.apache.maven.plugin.MojoFailureException
-