Package org.apache.maven.plugin.compiler
package org.apache.maven.plugin.compiler
Maven Compiler Plugin MOJO.
The
CompilerMojo
and TestCompilerMojo
classes contain the configuration for compiling the main source code and the tests respectively.
These classes are mutable as they can be extended and have their properties modified in subclasses.
However, the actual compilation is performed by ToolExecutor
,
which takes a snapshot of the MOJO at construction time. After the test executor has been
created, it can be executed safely in a background thread even if the MOJO is modified concurrently.-
ClassDescriptionBase class of Mojos compiling Java source code.Thrown when the Maven compiler plugin cannot complete the project compilation.Compiles application sources.Deprecated.Deprecated.Used for
AbstractCompilerMojo.annotationProcessorPaths
, which is deprecated.Thrown when amodule-info-patch.maven
file cannot be parsed.An helper class for preparing the options to pass to the tool (compiler or document generator).Compiles application test sources.A task which configures and executes a Java tool such as the Java compiler.Thrown when the source cannot be compiled because it required a Java version higher than the current runtime.
AbstractCompilerMojo.annotationProcessorPaths
, which is deprecated.