Package org.apache.maven.plugin.compiler
Class TestCompilerMojo
java.lang.Object
org.apache.maven.plugin.compiler.AbstractCompilerMojo
org.apache.maven.plugin.compiler.TestCompilerMojo
- All Implemented Interfaces:
org.apache.maven.api.plugin.Mojo
@Mojo(name="testCompile",
defaultPhase="test-compile")
public class TestCompilerMojo
extends AbstractCompilerMojo
Compiles application test sources.
By default uses the javac compiler
of the JDK used to execute Maven. This can be overwritten through Toolchains
or parameter
AbstractCompilerMojo.compilerId
.- Since:
- 2.0
- Author:
- Jason van Zyl
- See Also:
-
Field Summary
Fields inherited from class org.apache.maven.plugin.compiler.AbstractCompilerMojo
annotationProcessorPaths, annotationProcessorPathsUseDepMgmt, annotationProcessors, artifactManager, basedir, buildDirectory, compilerArgs, compilerArgument, compilerId, compilerManager, compilerReuseStrategy, compilerVersion, createMissingPackageInfoClass, debug, enablePreview, encoding, executable, failOnError, failOnWarning, fileExtensions, forceLegacyJavacApi, fork, implicit, jdkToolchain, logger, maxmem, meminitial, messageBuilderFactory, mojoStatusPath, optimize, outputTimestamp, parameters, proc, project, projectManager, PS, release, session, showCompilationChanges, showDeprecation, showWarnings, skipMultiThreadWarning, source, staleMillis, target, toolchainManager, useIncrementalCompilation, verbose
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
protected String
protected String
protected Path
protected Path
protected String
protected String
protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner
getSourceInclusionScanner
(int staleMillis) protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner
getSourceInclusionScanner
(String inputFileEnding) protected String
protected boolean
protected void
preparePaths
(Set<Path> sourceFiles) Methods inherited from class org.apache.maven.plugin.compiler.AbstractCompilerMojo
getBuildStartTime, getLog, getModuleDeclaration, getProject, getRequestThreadCount, getToolchain, isDependencyChanged, setRelease, setTarget
-
Constructor Details
-
TestCompilerMojo
public TestCompilerMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.api.plugin.MojoException- Specified by:
execute
in interfaceorg.apache.maven.api.plugin.Mojo
- Overrides:
execute
in classAbstractCompilerMojo
- Throws:
org.apache.maven.api.plugin.MojoException
-
getCompileSourceRoots
- Specified by:
getCompileSourceRoots
in classAbstractCompilerMojo
-
getPathElements
protected Map<String,org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptor> getPathElements()- Specified by:
getPathElements
in classAbstractCompilerMojo
-
getClasspathElements
- Specified by:
getClasspathElements
in classAbstractCompilerMojo
-
getModulepathElements
- Specified by:
getModulepathElements
in classAbstractCompilerMojo
-
getOutputDirectory
- Specified by:
getOutputDirectory
in classAbstractCompilerMojo
-
preparePaths
- Specified by:
preparePaths
in classAbstractCompilerMojo
-
getSourceInclusionScanner
protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(int staleMillis) - Specified by:
getSourceInclusionScanner
in classAbstractCompilerMojo
-
getSourceInclusionScanner
protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(String inputFileEnding) - Specified by:
getSourceInclusionScanner
in classAbstractCompilerMojo
-
getSource
- Specified by:
getSource
in classAbstractCompilerMojo
-
getTarget
- Specified by:
getTarget
in classAbstractCompilerMojo
-
getRelease
- Specified by:
getRelease
in classAbstractCompilerMojo
-
getCompilerArgument
- Specified by:
getCompilerArgument
in classAbstractCompilerMojo
-
getGeneratedSourcesDirectory
- Specified by:
getGeneratedSourcesDirectory
in classAbstractCompilerMojo
-
getDebugFileName
- Specified by:
getDebugFileName
in classAbstractCompilerMojo
-
isTestCompile
protected boolean isTestCompile()- Overrides:
isTestCompile
in classAbstractCompilerMojo
-
getIncludes
- Specified by:
getIncludes
in classAbstractCompilerMojo
-
getExcludes
- Specified by:
getExcludes
in classAbstractCompilerMojo
-