Modified: maven/website/components/plugins-archives/maven-compiler-plugin-LATEST/testCompile-mojo.html ============================================================================== --- maven/website/components/plugins-archives/maven-compiler-plugin-LATEST/testCompile-mojo.html (original) +++ maven/website/components/plugins-archives/maven-compiler-plugin-LATEST/testCompile-mojo.html Fri Dec 15 20:59:20 2023 @@ -2,8 +2,8 @@ <!-- - | Generated by Apache Maven Doxia Site Renderer 1.11.1 from target/generated-site/xdoc/testCompile-mojo.xml at 2023-02-14 - | Rendered using Apache Maven Fluido Skin 1.11.1 + | Generated by Apache Maven Doxia Site Renderer 1.11.1 from org.apache.maven.plugins:maven-plugin-report-plugin:3.10.2:report at 2023-12-15 + | Rendered using Apache Maven Fluido Skin 1.11.2 --> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> @@ -11,10 +11,10 @@ <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="generator" content="Apache Maven Doxia Site Renderer 1.11.1" /> <title>Apache Maven Compiler Plugin – compiler:testCompile</title> - <link rel="stylesheet" href="./css/apache-maven-fluido-1.11.1.min.css" /> + <link rel="stylesheet" href="./css/apache-maven-fluido-1.11.2.min.css" /> <link rel="stylesheet" href="./css/site.css" /> <link rel="stylesheet" href="./css/print.css" media="print" /> - <script src="./js/apache-maven-fluido-1.11.1.min.js"></script> + <script src="./js/apache-maven-fluido-1.11.2.min.js"></script> <!-- Matomo --> <script> @@ -44,13 +44,13 @@ <div id="breadcrumbs"> <ul class="breadcrumb"> - <li class=""><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li> - <li class=""><a href="../../index.html" title="Maven">Maven</a><span class="divider">/</span></li> - <li class=""><a href="../index.html" title="Plugins">Plugins</a><span class="divider">/</span></li> - <li class=""><a href="index.html" title="Apache Maven Compiler Plugin">Apache Maven Compiler Plugin</a><span class="divider">/</span></li> + <li><a href="https://www.apache.org/" class="externalLink" title="Apache">Apache</a><span class="divider">/</span></li> + <li><a href="../../index.html" title="Maven">Maven</a><span class="divider">/</span></li> + <li><a href="../index.html" title="Plugins">Plugins</a><span class="divider">/</span></li> + <li><a href="index.html" title="Apache Maven Compiler Plugin">Apache Maven Compiler Plugin</a><span class="divider">/</span></li> <li class="active ">compiler:testCompile</li> - <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2023-02-14</li> - <li id="projectVersion" class="pull-right">Version: 3.11.0</li> + <li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2023-12-15</li> + <li id="projectVersion" class="pull-right">Version: 3.12.0</li> </ul> </div> </header> @@ -63,7 +63,7 @@ <li><a href="plugin-info.html" title="Goals"><span class="none"></span>Goals</a></li> <li><a href="usage.html" title="Usage"><span class="none"></span>Usage</a></li> <li><a href="faq.html" title="FAQ"><span class="none"></span>FAQ</a></li> - <li><a href="http://www.apache.org/licenses/" class="externalLink" title="License"><span class="none"></span>License</a></li> + <li><a href="https://www.apache.org/licenses/" class="externalLink" title="License"><span class="none"></span>License</a></li> <li><a href="download.html" title="Download"><span class="none"></span>Download</a></li> <li class="nav-header">Examples</li> <li><a href="examples/compile-using-different-jdk.html" title="Compile Using A Different JDK"><span class="none"></span>Compile Using A Different JDK</a></li> @@ -78,22 +78,27 @@ <li><a href="project-info.html" title="Project Information"><span class="icon-chevron-right"></span>Project Information</a></li> <li><a href="project-reports.html" title="Project Reports"><span class="icon-chevron-right"></span>Project Reports</a></li> <li class="nav-header">Maven Projects</li> - <li><a href="../../archetype/index.html" title="Archetype"><span class="none"></span>Archetype</a></li> - <li><a href="../../resolver/index.html" title="Artifact Resolver"><span class="none"></span>Artifact Resolver</a></li> - <li><a href="../../doxia/index.html" title="Doxia"><span class="none"></span>Doxia</a></li> - <li><a href="../../extensions/index.html" title="Extensions"><span class="none"></span>Extensions</a></li> - <li><a href="../../jxr/index.html" title="JXR"><span class="none"></span>JXR</a></li> <li><a href="../../ref/current" title="Maven"><span class="none"></span>Maven</a></li> + <li><a href="../../archetypes/index.html" title="Archetypes"><span class="none"></span>Archetypes</a></li> + <li><a href="../../extensions/index.html" title="Extensions"><span class="none"></span>Extensions</a></li> <li><a href="../../pom/index.html" title="Parent POMs"><span class="none"></span>Parent POMs</a></li> <li><a href="../index.html" title="Plugins"><span class="none"></span>Plugins</a></li> - <li><a href="../../plugin-testing/index.html" title="Plugin Testing"><span class="none"></span>Plugin Testing</a></li> - <li><a href="../../plugin-tools/index.html" title="Plugin Tools"><span class="none"></span>Plugin Tools</a></li> - <li><a href="../../apache-resource-bundles/index.html" title="Resource Bundles"><span class="none"></span>Resource Bundles</a></li> - <li><a href="../../scm/index.html" title="SCM"><span class="none"></span>SCM</a></li> - <li><a href="../../shared/index.html" title="Shared Components"><span class="none"></span>Shared Components</a></li> <li><a href="../../skins/index.html" title="Skins"><span class="none"></span>Skins</a></li> - <li><a href="../../surefire/index.html" title="Surefire"><span class="none"></span>Surefire</a></li> - <li><a href="../../wagon/index.html" title="Wagon"><span class="none"></span>Wagon</a></li> + <li><a href="" title=""><span class="icon-chevron-down"></span></a> + <ul class="nav nav-list"> + <li><a href="../../archetype/index.html" title="Archetype"><span class="none"></span>Archetype</a></li> + <li><a href="../../resolver/index.html" title="Artifact Resolver"><span class="none"></span>Artifact Resolver</a></li> + <li><a href="../../doxia/index.html" title="Doxia"><span class="none"></span>Doxia</a></li> + <li><a href="../../maven-indexer/index.html" title="Indexer"><span class="none"></span>Indexer</a></li> + <li><a href="../../jxr/index.html" title="JXR"><span class="none"></span>JXR</a></li> + <li><a href="../../plugin-testing/index.html" title="Plugin Testing"><span class="none"></span>Plugin Testing</a></li> + <li><a href="../../plugin-tools/index.html" title="Plugin Tools"><span class="none"></span>Plugin Tools</a></li> + <li><a href="../../apache-resource-bundles/index.html" title="Resource Bundles"><span class="none"></span>Resource Bundles</a></li> + <li><a href="../../scm/index.html" title="SCM"><span class="none"></span>SCM</a></li> + <li><a href="../../shared/index.html" title="Shared Components"><span class="none"></span>Shared Components</a></li> + <li><a href="../../surefire/index.html" title="Surefire"><span class="none"></span>Surefire</a></li> + <li><a href="../../wagon/index.html" title="Wagon"><span class="none"></span>Wagon</a></li> + </ul></li> <li class="nav-header">ASF</li> <li><a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How Apache Works"><span class="none"></span>How Apache Works</a></li> <li><a href="https://www.apache.org/foundation/" class="externalLink" title="Foundation"><span class="none"></span>Foundation</a></li> @@ -112,69 +117,56 @@ </div> </header> <main id="bodyColumn" class="span10" > - - - <section> -<h2><a name="compiler:testCompile"></a>compiler:testCompile</h2> - -<p><b>Full name</b>:</p> - -<p>org.apache.maven.plugins:maven-compiler-plugin:3.11.0:testCompile</p> - -<p><b>Description</b>:</p> - -<div>Compiles application test sources.</div> - -<p><b>Attributes</b>:</p> - +<section> +<h2><a name="compiler:testCompile"></a>compiler:testCompile</h2><a name="compiler:testCompile"></a> +<p><strong>Full name</strong>:</p> +<p>org.apache.maven.plugins:maven-compiler-plugin:3.12.0:testCompile</p> +<p><strong>Description</strong>:</p> +<p>Compiles application test sources.</p> +<p><strong>Attributes</strong>:</p> <ul> - <li>Requires a Maven project to be executed.</li> - <li>Requires dependency resolution of artifacts in scope: <code>test</code>.</li> - <li>The goal is thread-safe and supports parallel builds.</li> - <li>Since version: <code>2.0</code>.</li> - -<li>Binds by default to the <a class="externalLink" href="http://maven.apache.org/ref/current/maven-core/lifecycles.html">lifecycle phase</a>: <code>test-compile</code>.</li> - </ul> - <section> -<h3><a name="Optional_Parameters"></a>Optional Parameters</h3> - -<table class="table table-striped" border="0"> - +<li>Binds by default to the <a class="externalLink" href="https://maven.apache.org/ref/current/maven-core/lifecycles.html">lifecycle phase</a>: <code>test-compile</code>.</li></ul><section> +<h3><a name="Required_Parameters"></a>Required Parameters</h3><a name="Required_Parameters"></a> +<table border="0" class="table table-striped"> +<tr class="a"> +<th>Name</th> +<th>Type</th> +<th>Since</th> +<th>Description</th></tr> +<tr class="b"> +<td align="left"><a href="#compileSourceRoots"><code><compileSourceRoots></code></a></td> +<td><code>List<String></code></td> +<td><code>-</code></td> +<td>The source directories containing the test-source to be compiled.<br /><strong>Default</strong>: <code>${project.testCompileSourceRoots}</code></td></tr> +<tr class="a"> +<td align="left"><a href="#outputDirectory"><code><outputDirectory></code></a></td> +<td><code>File</code></td> +<td><code>-</code></td> +<td>The directory where compiled test classes go. +<p>This parameter should only be modified in special cases. See the <code>CompilerMojo.outputDirectory</code> for more information.</p><br /><strong>See also:</strong> CompilerMojo.outputDirectory<br /><strong>Default</strong>: <code>${project.build.testOutputDirectory}</code></td></tr></table></section><section> +<h3><a name="Optional_Parameters"></a>Optional Parameters</h3><a name="Optional_Parameters"></a> +<table border="0" class="table table-striped"> <tr class="a"> - <th>Name</th> - <th>Type</th> - <th>Since</th> - -<th>Description</th> - </tr> - -<tr class="b"> - -<td align="left"><code><a href="#annotationProcessorPaths"><annotationProcessorPaths></a></code></td> - -<td><code><a href="apidocs/org/apache/maven/plugin/compiler/DependencyCoordinate.html">List<DependencyCoordinate></a></code></td> - +<th>Description</th></tr> +<tr class="b"> +<td align="left"><a href="#annotationProcessorPaths"><code><annotationProcessorPaths></code></a></td> +<td><a href="apidocs/org/apache/maven/plugin/compiler/DependencyCoordinate.html"><code>List<DependencyCoordinate></code></a></td> <td><code>3.5</code></td> - -<td> -<p>Classpath elements to supply as annotation processor path. If specified, the compiler will detect annotation processors only in those classpath elements. If omitted, the default classpath is used to detect annotation processors. The detection itself depends on the configuration of <code>annotationProcessors</code>.</p> - +<td><p>Classpath elements to supply as annotation processor path. If specified, the compiler will detect annotation processors only in those classpath elements. If omitted, the default classpath is used to detect annotation processors. The detection itself depends on the configuration of <code>annotationProcessors</code>.</p> <p>Each classpath element is specified using their Maven coordinates (groupId, artifactId, version, classifier, type). Transitive dependencies are added automatically. Exclusions are supported as well. Example:</p> - -<div> <pre><configuration> <annotationProcessorPaths> <path> <groupId>org.sample</groupId> <artifactId>sample-annotation-processor</artifactId> - <version>1.2.3</version> + <version>1.2.3</version> <!-- Optional - taken from dependency management if not specified --> <!-- Optionally exclude transitive dependencies --> <exclusions> <exclusion> @@ -186,296 +178,148 @@ <!-- ... more ... --> </annotationProcessorPaths> </configuration> -</pre></div> <b>Note:</b> Exclusions are supported from version 3.11.0.<br /></td> - </tr> - -<tr class="a"> - -<td align="left"><code><a href="#annotationProcessors"><annotationProcessors></a></code></td> - +</pre><b>Note:</b> Exclusions are supported from version 3.11.0.</td></tr> +<tr class="a"> +<td align="left"><a href="#annotationProcessorPathsUseDepMgmt"><code><annotationProcessorPathsUseDepMgmt></code></a></td> +<td><code>boolean</code></td> +<td><code>3.12.0</code></td> +<td><p>Whether to use the Maven dependency management section when resolving transitive dependencies of annotation processor paths.</p> +<p>This flag does not enable / disable the ability to resolve the version of annotation processor paths from dependency management section. It only influences the resolution o transitive dependencies of those top-level paths.</p><br /><strong>Default</strong>: <code>false</code></td></tr> +<tr class="b"> +<td align="left"><a href="#annotationProcessors"><code><annotationProcessors></code></a></td> <td><code>String[]</code></td> - <td><code>2.2</code></td> - -<td> -<p>Names of annotation processors to run. Only applies to JDK 1.6+ If not set, the default annotation processors discovery process applies.</p><br /></td> - </tr> - -<tr class="b"> - -<td align="left"><code><a href="#compilerArgs"><compilerArgs></a></code></td> - +<td><p>Names of annotation processors to run. Only applies to JDK 1.6+ If not set, the default annotation processors discovery process applies.</p></td></tr> +<tr class="a"> +<td align="left"><a href="#compilerArgs"><code><compilerArgs></code></a></td> <td><code>List<String></code></td> - <td><code>3.1</code></td> - -<td> -<p>Sets the arguments to be passed to the compiler.</p> - +<td><p>Sets the arguments to be passed to the compiler.</p> <p>Note that <code>-J</code> options are only passed through if <a href="#fork"><code>fork</code></a> is set to <code>true</code>.</p> Example: - -<div> <pre><compilerArgs> <arg>-Xmaxerrs</arg> <arg>1000</arg> <arg>-Xlint</arg> <arg>-J-Duser.language=en_us</arg> </compilerArgs> -</pre></div><br /></td> - </tr> - -<tr class="a"> - -<td align="left"><code><a href="#compilerArgument"><compilerArgument></a></code></td> - +</pre></td></tr> +<tr class="b"> +<td align="left"><a href="#compilerArgument"><code><compilerArgument></code></a></td> <td><code>String</code></td> - <td><code>-</code></td> - -<td> -<p>Sets the unformatted single argument string to be passed to the compiler. To pass multiple arguments such as <code>-Xmaxerrs 1000</code> (which are actually two arguments) you have to use <a href="#compilerArguments"><code>compilerArguments</code></a>.</p> - +<td><p>Sets the unformatted single argument string to be passed to the compiler. To pass multiple arguments such as <code>-Xmaxerrs 1000</code> (which are actually two arguments) you have to use <a href="#compilerArgs"><code>compilerArgs</code></a>.</p> <p>This is because the list of valid arguments passed to a Java compiler varies based on the compiler version.</p> - -<p>Note that <code>-J</code> options are only passed through if <a href="#fork"><code>fork</code></a> is set to <code>true</code>.</p><br /></td> - </tr> - -<tr class="b"> - -<td align="left"><code><a href="#compilerArguments"><compilerArguments></a></code></td> - +<p>Note that <code>-J</code> options are only passed through if <a href="#fork"><code>fork</code></a> is set to <code>true</code>.</p></td></tr> +<tr class="a"> +<td align="left"><a href="#compilerArguments"><code><compilerArguments></code></a></td> <td><code>Map<String,String></code></td> - <td><code>2.0.1</code></td> - -<td><b>Deprecated.</b> -<p>Sets the arguments to be passed to the compiler (prepending a dash).</p> - +<td><strong>Deprecated.</strong> <p>Sets the arguments to be passed to the compiler (prepending a dash).</p> <p>This is because the list of valid arguments passed to a Java compiler varies based on the compiler version.</p> - <p>Note that <code>-J</code> options are only passed through if <a href="#fork"><code>fork</code></a> is set to <code>true</code>.</p> - <p>To pass <code>-Xmaxerrs 1000 -Xlint -Xlint:-path -Averbose=true</code> you should include the following:</p> - -<div> <pre><compilerArguments> <Xmaxerrs>1000</Xmaxerrs> <Xlint/> <Xlint:-path/> <Averbose>true</Averbose> </compilerArguments> -</pre></div><br /></td> - </tr> - -<tr class="a"> - -<td align="left"><code><a href="#compilerId"><compilerId></a></code></td> - +</pre></td></tr> +<tr class="b"> +<td align="left"><a href="#compilerId"><code><compilerId></code></a></td> <td><code>String</code></td> - <td><code>-</code></td> - -<td>The compiler id of the compiler to use. See this <a href="non-javac-compilers.html">guide</a> for more information.<br /><b>Default value is</b>: <code>javac</code>.<br /><b>User property is</b>: <code>maven.compiler.compilerId</code>.<br /></td> - </tr> - -<tr class="b"> - -<td align="left"><code><a href="#compilerReuseStrategy"><compilerReuseStrategy></a></code></td> - +<td>The compiler id of the compiler to use. See this <a href="non-javac-compilers.html">guide</a> for more information.<br /><strong>Default</strong>: <code>javac</code><br /><strong>User Property</strong>: <code>maven.compiler.compilerId</code></td></tr> +<tr class="a"> +<td align="left"><a href="#compilerReuseStrategy"><code><compilerReuseStrategy></code></a></td> <td><code>String</code></td> - <td><code>2.5</code></td> - <td>Strategy to re use javacc class created: - <ul> - -<li><code>reuseCreated</code> (default): will reuse already created but in case of multi-threaded builds, each thread will have its own instance</li> - -<li><code>reuseSame</code>: the same Javacc class will be used for each compilation even for multi-threaded build</li> - -<li><code>alwaysNew</code>: a new Javacc class will be created for each compilation</li> -</ul> Note this parameter value depends on the os/jdk you are using, but the default value should work on most of env.<br /><b>Default value is</b>: <code>${reuseCreated}</code>.<br /><b>User property is</b>: <code>maven.compiler.compilerReuseStrategy</code>.<br /></td> - </tr> - -<tr class="a"> - -<td align="left"><code><a href="#compilerVersion"><compilerVersion></a></code></td> - + <li><code>reuseCreated</code> (default): will reuse already created but in case of multi-threaded builds, each thread will have its own instance</li> + <li><code>reuseSame</code>: the same Javacc class will be used for each compilation even for multi-threaded build</li> + <li><code>alwaysNew</code>: a new Javacc class will be created for each compilation</li> +</ul> Note this parameter value depends on the os/jdk you are using, but the default value should work on most of env.<br /><strong>Default</strong>: <code>${reuseCreated}</code><br /><strong>User Property</strong>: <code>maven.compiler.compilerReuseStrategy</code></td></tr> +<tr class="b"> +<td align="left"><a href="#compilerVersion"><code><compilerVersion></code></a></td> <td><code>String</code></td> - <td><code>-</code></td> - -<td>Version of the compiler to use, ex. "1.3", "1.5", if <a href="#fork"><code>fork</code></a> is set to <code>true</code>.<br /><b>User property is</b>: <code>maven.compiler.compilerVersion</code>.<br /></td> - </tr> - -<tr class="b"> - -<td align="left"><code><a href="#createMissingPackageInfoClass"><createMissingPackageInfoClass></a></code></td> - +<td>Version of the compiler to use, ex. "1.3", "1.5", if <a href="#fork"><code>fork</code></a> is set to <code>true</code>.<br /><strong>User Property</strong>: <code>maven.compiler.compilerVersion</code></td></tr> +<tr class="a"> +<td align="left"><a href="#createMissingPackageInfoClass"><code><createMissingPackageInfoClass></code></a></td> <td><code>boolean</code></td> - <td><code>3.10</code></td> - -<td>Package info source files that only contain javadoc and no annotation on the package can lead to no class file being generated by the compiler. This causes a file miss on the next compilations and forces an unnecessary recompilation. The default value of <code>true</code> causes an empty class file to be generated. This behavior can be changed by setting this parameter to <code>false</code>.<br /><b>Default value is</b>: <code>true</code>.<br /><b>User property is</b>: <code>maven.compiler.createMissingPackageInfoClass</code>.<br /></td> - </tr> - -<tr class="a"> - -<td align="left"><code><a href="#debug"><debug></a></code></td> - +<td>Package info source files that only contain javadoc and no annotation on the package can lead to no class file being generated by the compiler. This causes a file miss on the next compilations and forces an unnecessary recompilation. The default value of <code>true</code> causes an empty class file to be generated. This behavior can be changed by setting this parameter to <code>false</code>.<br /><strong>Default</strong>: <code>true</code><br /><strong>User Property</strong>: <code>maven.compiler.createMissingPackageInfoClass</code></td></tr> +<tr class="b"> +<td align="left"><a href="#debug"><code><debug></code></a></td> <td><code>boolean</code></td> - <td><code>-</code></td> - -<td>Set to <code>true</code> to include debugging information in the compiled class files.<br /><b>Default value is</b>: <code>true</code>.<br /><b>User property is</b>: <code>maven.compiler.debug</code>.<br /></td> - </tr> - -<tr class="b"> - -<td align="left"><code><a href="#debugFileName"><debugFileName></a></code></td> - +<td>Set to <code>true</code> to include debugging information in the compiled class files.<br /><strong>Default</strong>: <code>true</code><br /><strong>User Property</strong>: <code>maven.compiler.debug</code></td></tr> +<tr class="a"> +<td align="left"><a href="#debugFileName"><code><debugFileName></code></a></td> <td><code>String</code></td> - <td><code>3.10.0</code></td> - -<td>when forking and debug activated the commandline used will be dumped in this file<br /><b>Default value is</b>: <code>javac-test</code>.<br /></td> - </tr> - -<tr class="a"> - -<td align="left"><code><a href="#debuglevel"><debuglevel></a></code></td> - +<td>when forking and debug activated the commandline used will be dumped in this file<br /><strong>Default</strong>: <code>javac-test</code></td></tr> +<tr class="b"> +<td align="left"><a href="#debuglevel"><code><debuglevel></code></a></td> <td><code>String</code></td> - <td><code>2.1</code></td> - -<td>Keyword list to be appended to the <code>-g</code> command-line switch. Legal values are none or a comma-separated list of the following keywords: <code>lines</code>, <code>vars</code>, and <code>source</code>. If debug level is not specified, by default, nothing will be appended to <code>-g</code>. If debug is not turned on, this attribute will be ignored.<br /><b>User property is</b>: <code>maven.compiler.debuglevel</code>.<br /></td> - </tr> - -<tr class="b"> - -<td align="left"><code><a href="#enablePreview"><enablePreview></a></code></td> - +<td>Keyword list to be appended to the <code>-g</code> command-line switch. Legal values are none or a comma-separated list of the following keywords: <code>lines</code>, <code>vars</code>, and <code>source</code>. If debug level is not specified, by default, nothing will be appended to <code>-g</code>. If debug is not turned on, this attribute will be ignored.<br /><strong>User Property</strong>: <code>maven.compiler.debuglevel</code></td></tr> +<tr class="a"> +<td align="left"><a href="#enablePreview"><code><enablePreview></code></a></td> <td><code>boolean</code></td> - <td><code>3.10.1</code></td> - -<td>Set to <code>true</code> to Enable preview language features of the java compiler<br /><b>Default value is</b>: <code>false</code>.<br /><b>User property is</b>: <code>maven.compiler.enablePreview</code>.<br /></td> - </tr> - -<tr class="a"> - -<td align="left"><code><a href="#encoding"><encoding></a></code></td> - +<td>Set to <code>true</code> to Enable preview language features of the java compiler<br /><strong>Default</strong>: <code>false</code><br /><strong>User Property</strong>: <code>maven.compiler.enablePreview</code></td></tr> +<tr class="b"> +<td align="left"><a href="#encoding"><code><encoding></code></a></td> <td><code>String</code></td> - <td><code>2.1</code></td> - -<td>The -encoding argument for the Java compiler.<br /><b>Default value is</b>: <code>${project.build.sourceEncoding}</code>.<br /><b>User property is</b>: <code>encoding</code>.<br /></td> - </tr> - -<tr class="b"> - -<td align="left"><code><a href="#executable"><executable></a></code></td> - +<td>The -encoding argument for the Java compiler.<br /><strong>Default</strong>: <code>${project.build.sourceEncoding}</code><br /><strong>User Property</strong>: <code>encoding</code></td></tr> +<tr class="a"> +<td align="left"><a href="#executable"><code><executable></code></a></td> <td><code>String</code></td> - <td><code>-</code></td> - -<td>Sets the executable of the compiler to use when <a href="#fork"><code>fork</code></a> is <code>true</code>.<br /><b>User property is</b>: <code>maven.compiler.executable</code>.<br /></td> - </tr> - -<tr class="a"> - -<td align="left"><code><a href="#failOnError"><failOnError></a></code></td> - +<td>Sets the executable of the compiler to use when <a href="#fork"><code>fork</code></a> is <code>true</code>.<br /><strong>User Property</strong>: <code>maven.compiler.executable</code></td></tr> +<tr class="b"> +<td align="left"><a href="#failOnError"><code><failOnError></code></a></td> <td><code>boolean</code></td> - <td><code>2.0.2</code></td> - -<td>Indicates whether the build will continue even if there are compilation errors.<br /><b>Default value is</b>: <code>true</code>.<br /><b>User property is</b>: <code>maven.compiler.failOnError</code>.<br /></td> - </tr> - -<tr class="b"> - -<td align="left"><code><a href="#failOnWarning"><failOnWarning></a></code></td> - +<td>Indicates whether the build will continue even if there are compilation errors.<br /><strong>Default</strong>: <code>true</code><br /><strong>User Property</strong>: <code>maven.compiler.failOnError</code></td></tr> +<tr class="a"> +<td align="left"><a href="#failOnWarning"><code><failOnWarning></code></a></td> <td><code>boolean</code></td> - <td><code>3.6</code></td> - -<td>Indicates whether the build will continue even if there are compilation warnings.<br /><b>Default value is</b>: <code>false</code>.<br /><b>User property is</b>: <code>maven.compiler.failOnWarning</code>.<br /></td> - </tr> - -<tr class="a"> - -<td align="left"><code><a href="#fileExtensions"><fileExtensions></a></code></td> - -<td><code>List<String></code></td> - +<td>Indicates whether the build will continue even if there are compilation warnings.<br /><strong>Default</strong>: <code>false</code><br /><strong>User Property</strong>: <code>maven.compiler.failOnWarning</code></td></tr> +<tr class="b"> +<td align="left"><a href="#fileExtensions"><code><fileExtensions></code></a></td> +<td><code>Set<String></code></td> <td><code>3.1</code></td> - -<td>File extensions to check timestamp for incremental build. Default contains only <code>class</code> and <code>jar</code>.<br /></td> - </tr> - -<tr class="b"> - -<td align="left"><code><a href="#forceJavacCompilerUse"><forceJavacCompilerUse></a></code></td> - +<td>File extensions to check timestamp for incremental build.<br /><strong>Default</strong>: <code>class,jar</code></td></tr> +<tr class="a"> +<td align="left"><a href="#forceJavacCompilerUse"><code><forceJavacCompilerUse></code></a></td> <td><code>boolean</code></td> - <td><code>3.0</code></td> - -<td>compiler can now use javax.tools if available in your current jdk, you can disable this feature using -Dmaven.compiler.forceJavacCompilerUse=true or in the plugin configuration<br /><b>Default value is</b>: <code>false</code>.<br /><b>User property is</b>: <code>maven.compiler.forceJavacCompilerUse</code>.<br /></td> - </tr> - -<tr class="a"> - -<td align="left"><code><a href="#fork"><fork></a></code></td> - +<td>compiler can now use javax.tools if available in your current jdk, you can disable this feature using -Dmaven.compiler.forceJavacCompilerUse=true or in the plugin configuration<br /><strong>Default</strong>: <code>false</code><br /><strong>User Property</strong>: <code>maven.compiler.forceJavacCompilerUse</code></td></tr> +<tr class="b"> +<td align="left"><a href="#fork"><code><fork></code></a></td> <td><code>boolean</code></td> - <td><code>-</code></td> - -<td>Allows running the compiler in a separate process. If <code>false</code> it uses the built in compiler, while if <code>true</code> it will use an executable.<br /><b>Default value is</b>: <code>false</code>.<br /><b>User property is</b>: <code>maven.compiler.fork</code>.<br /></td> - </tr> - -<tr class="b"> - -<td align="left"><code><a href="#generatedTestSourcesDirectory"><generatedTestSourcesDirectory></a></code></td> - +<td>Allows running the compiler in a separate process. If <code>false</code> it uses the built in compiler, while if <code>true</code> it will use an executable.<br /><strong>Default</strong>: <code>false</code><br /><strong>User Property</strong>: <code>maven.compiler.fork</code></td></tr> +<tr class="a"> +<td align="left"><a href="#generatedTestSourcesDirectory"><code><generatedTestSourcesDirectory></code></a></td> <td><code>File</code></td> - <td><code>2.2</code></td> - -<td> -<p>Specify where to place generated source files created by annotation processing. Only applies to JDK 1.6+</p><br /><b>Default value is</b>: <code>${project.build.directory}/generated-test-sources/test-annotations</code>.<br /></td> - </tr> - -<tr class="a"> - -<td align="left"><code><a href="#implicit"><implicit></a></code></td> - +<td><p>Specify where to place generated source files created by annotation processing. Only applies to JDK 1.6+</p><br /><strong>Default</strong>: <code>${project.build.directory}/generated-test-sources/test-annotations</code></td></tr> +<tr class="b"> +<td align="left"><a href="#implicit"><code><implicit></code></a></td> <td><code>String</code></td> - <td><code>3.10.2</code></td> - -<td>Keyword to be appended to the <code>-implicit:</code> command-line switch.<br /><b>User property is</b>: <code>maven.compiler.implicit</code>.<br /></td> - </tr> - -<tr class="b"> - -<td align="left"><code><a href="#jdkToolchain"><jdkToolchain></a></code></td> - +<td>Keyword to be appended to the <code>-implicit:</code> command-line switch.<br /><strong>User Property</strong>: <code>maven.compiler.implicit</code></td></tr> +<tr class="a"> +<td align="left"><a href="#jdkToolchain"><code><jdkToolchain></code></a></td> <td><code>Map<String,String></code></td> - <td><code>3.6</code></td> - -<td> -<p>Specify the requirements for this jdk toolchain for using a different <code>javac</code> than the one of the JRE used by Maven. This overrules the toolchain selected by the <a class="externalLink" href="https://maven.apache.org/plugins/maven-toolchains-plugin/">maven-toolchain-plugin</a>.</p> (see <a class="externalLink" href="https://maven.apache.org/guides/mini/guide-using-toolchains.html"> Guide to Toolchains</a> for more info) - -<div> +<td><p>Specify the requirements for this jdk toolchain for using a different <code>javac</code> than the one of the JRE used by Maven. This overrules the toolchain selected by the <a href="https://maven.apache.org/plugins/maven-toolchains-plugin/">maven-toolchain-plugin</a>.</p> (see <a href="https://maven.apache.org/guides/mini/guide-using-toolchains.html"> Guide to Toolchains</a> for more info) <pre><configuration> <jdkToolchain> <version>11</version> @@ -490,360 +334,173 @@ </jdkToolchain> ... </configuration> -</pre></div> <b>note:</b> requires at least Maven 3.3.1<br /></td> - </tr> - -<tr class="a"> - -<td align="left"><code><a href="#maxmem"><maxmem></a></code></td> - +</pre><strong>note:</strong> requires at least Maven 3.3.1</td></tr> +<tr class="b"> +<td align="left"><a href="#maxmem"><code><maxmem></code></a></td> <td><code>String</code></td> - <td><code>2.0.1</code></td> - -<td>Sets the maximum size, in megabytes, of the memory allocation pool, ex. "128", "128m" if <a href="#fork"><code>fork</code></a> is set to <code>true</code>.<br /><b>User property is</b>: <code>maven.compiler.maxmem</code>.<br /></td> - </tr> - -<tr class="b"> - -<td align="left"><code><a href="#meminitial"><meminitial></a></code></td> - +<td>Sets the maximum size, in megabytes, of the memory allocation pool, ex. "128", "128m" if <a href="#fork"><code>fork</code></a> is set to <code>true</code>.<br /><strong>User Property</strong>: <code>maven.compiler.maxmem</code></td></tr> +<tr class="a"> +<td align="left"><a href="#meminitial"><code><meminitial></code></a></td> <td><code>String</code></td> - <td><code>2.0.1</code></td> - -<td>Initial size, in megabytes, of the memory allocation pool, ex. "64", "64m" if <a href="#fork"><code>fork</code></a> is set to <code>true</code>.<br /><b>User property is</b>: <code>maven.compiler.meminitial</code>.<br /></td> - </tr> - -<tr class="a"> - -<td align="left"><code><a href="#optimize"><optimize></a></code></td> - +<td>Initial size, in megabytes, of the memory allocation pool, ex. "64", "64m" if <a href="#fork"><code>fork</code></a> is set to <code>true</code>.<br /><strong>User Property</strong>: <code>maven.compiler.meminitial</code></td></tr> +<tr class="b"> +<td align="left"><a href="#optimize"><code><optimize></code></a></td> <td><code>boolean</code></td> - <td><code>-</code></td> - -<td><b>Deprecated.</b> Set to <code>true</code> to optimize the compiled code using the compiler's optimization methods.<br /><b>Default value is</b>: <code>false</code>.<br /><b>User property is</b>: <code>maven.compiler.optimize</code>.<br /></td> - </tr> - -<tr class="b"> - -<td align="left"><code><a href="#outputFileName"><outputFileName></a></code></td> - +<td><strong>Deprecated.</strong> Set to <code>true</code> to optimize the compiled code using the compiler's optimization methods.<br /><strong>Default</strong>: <code>false</code><br /><strong>User Property</strong>: <code>maven.compiler.optimize</code></td></tr> +<tr class="a"> +<td align="left"><a href="#outputFileName"><code><outputFileName></code></a></td> <td><code>String</code></td> - <td><code>-</code></td> - <td>Sets the name of the output file when compiling a set of sources to a single file. - -<p></p> expression="${project.build.finalName}"<br /></td> - </tr> - -<tr class="a"> - -<td align="left"><code><a href="#parameters"><parameters></a></code></td> - +<p></p> expression="${project.build.finalName}"</td></tr> +<tr class="b"> +<td align="left"><a href="#outputTimestamp"><code><outputTimestamp></code></a></td> +<td><code>String</code></td> +<td><code>3.12.0</code></td> +<td>Timestamp for reproducible output archive entries, either formatted as ISO 8601 <code>yyyy-MM-dd'T'HH:mm:ssXXX</code> or as an int representing seconds since the epoch (like <a href="https://reproducible-builds.org/docs/source-date-epoch/">SOURCE_DATE_EPOCH</a>).<br /><strong>Default</strong>: <code>${project.build.outputTimestamp}</code></td></tr> +<tr class="a"> +<td align="left"><a href="#parameters"><code><parameters></code></a></td> <td><code>boolean</code></td> - <td><code>3.6.2</code></td> - -<td>Set to <code>true</code> to generate metadata for reflection on method parameters.<br /><b>Default value is</b>: <code>false</code>.<br /><b>User property is</b>: <code>maven.compiler.parameters</code>.<br /></td> - </tr> - -<tr class="b"> - -<td align="left"><code><a href="#proc"><proc></a></code></td> - +<td>Set to <code>true</code> to generate metadata for reflection on method parameters.<br /><strong>Default</strong>: <code>false</code><br /><strong>User Property</strong>: <code>maven.compiler.parameters</code></td></tr> +<tr class="b"> +<td align="left"><a href="#proc"><code><proc></code></a></td> <td><code>String</code></td> - <td><code>2.2</code></td> - -<td> -<p>Sets whether annotation processing is performed or not. Only applies to JDK 1.6+ If not set, both compilation and annotation processing are performed at the same time.</p> - +<td><p>Sets whether annotation processing is performed or not. Only applies to JDK 1.6+ If not set, both compilation and annotation processing are performed at the same time.</p> <p>Allowed values are:</p> - <ul> - -<li><code>none</code> - no annotation processing is performed.</li> - -<li><code>only</code> - only annotation processing is done, no compilation.</li> -</ul><br /></td> - </tr> - -<tr class="a"> - -<td align="left"><code><a href="#release"><release></a></code></td> - + <li><code>none</code> - no annotation processing is performed.</li> + <li><code>only</code> - only annotation processing is done, no compilation.</li> +</ul></td></tr> +<tr class="a"> +<td align="left"><a href="#release"><code><release></code></a></td> <td><code>String</code></td> - <td><code>3.6</code></td> - -<td>The -release argument for the Java compiler, supported since Java9<br /><b>User property is</b>: <code>maven.compiler.release</code>.<br /></td> - </tr> - -<tr class="b"> - -<td align="left"><code><a href="#showCompilationChanges"><showCompilationChanges></a></code></td> - +<td>The -release argument for the Java compiler, supported since Java9<br /><strong>User Property</strong>: <code>maven.compiler.release</code></td></tr> +<tr class="b"> +<td align="left"><a href="#showCompilationChanges"><code><showCompilationChanges></code></a></td> <td><code>boolean</code></td> - <td><code>-</code></td> - -<td>(no description)<br /><b>Default value is</b>: <code>false</code>.<br /><b>User property is</b>: <code>maven.compiler.showCompilationChanges</code>.<br /></td> - </tr> - -<tr class="a"> - -<td align="left"><code><a href="#showDeprecation"><showDeprecation></a></code></td> - +<td>No description.<br /><strong>Default</strong>: <code>false</code><br /><strong>User Property</strong>: <code>maven.compiler.showCompilationChanges</code></td></tr> +<tr class="a"> +<td align="left"><a href="#showDeprecation"><code><showDeprecation></code></a></td> <td><code>boolean</code></td> - <td><code>-</code></td> - -<td>Sets whether to show source locations where deprecated APIs are used.<br /><b>Default value is</b>: <code>false</code>.<br /><b>User property is</b>: <code>maven.compiler.showDeprecation</code>.<br /></td> - </tr> - -<tr class="b"> - -<td align="left"><code><a href="#showWarnings"><showWarnings></a></code></td> - +<td>Sets whether to show source locations where deprecated APIs are used.<br /><strong>Default</strong>: <code>false</code><br /><strong>User Property</strong>: <code>maven.compiler.showDeprecation</code></td></tr> +<tr class="b"> +<td align="left"><a href="#showWarnings"><code><showWarnings></code></a></td> <td><code>boolean</code></td> - <td><code>-</code></td> - -<td>Set to <code>false</code> to disable warnings during compilation.<br /><b>Default value is</b>: <code>true</code>.<br /><b>User property is</b>: <code>maven.compiler.showWarnings</code>.<br /></td> - </tr> - -<tr class="a"> - -<td align="left"><code><a href="#skip"><skip></a></code></td> - +<td>Set to <code>false</code> to disable warnings during compilation.<br /><strong>Default</strong>: <code>true</code><br /><strong>User Property</strong>: <code>maven.compiler.showWarnings</code></td></tr> +<tr class="a"> +<td align="left"><a href="#skip"><code><skip></code></a></td> <td><code>boolean</code></td> - <td><code>-</code></td> - -<td>Set this to 'true' to bypass compilation of test sources. Its use is NOT RECOMMENDED, but quite convenient on occasion.<br /><b>User property is</b>: <code>maven.test.skip</code>.<br /></td> - </tr> - -<tr class="b"> - -<td align="left"><code><a href="#skipMultiThreadWarning"><skipMultiThreadWarning></a></code></td> - +<td>Set this to 'true' to bypass compilation of test sources. Its use is NOT RECOMMENDED, but quite convenient on occasion.<br /><strong>User Property</strong>: <code>maven.test.skip</code></td></tr> +<tr class="b"> +<td align="left"><a href="#skipMultiThreadWarning"><code><skipMultiThreadWarning></code></a></td> <td><code>boolean</code></td> - <td><code>2.5</code></td> - -<td>(no description)<br /><b>Default value is</b>: <code>false</code>.<br /><b>User property is</b>: <code>maven.compiler.skipMultiThreadWarning</code>.<br /></td> - </tr> - -<tr class="a"> - -<td align="left"><code><a href="#source"><source></a></code></td> - +<td>No description.<br /><strong>Default</strong>: <code>false</code><br /><strong>User Property</strong>: <code>maven.compiler.skipMultiThreadWarning</code></td></tr> +<tr class="a"> +<td align="left"><a href="#source"><code><source></code></a></td> <td><code>String</code></td> - <td><code>-</code></td> - -<td> -<p>The -source argument for the Java compiler.</p> - +<td><p>The -source argument for the Java compiler.</p> <p><b>NOTE: </b></p> - <p>Since 3.8.0 the default value has changed from 1.5 to 1.6</p> - <p>Since 3.9.0 the default value has changed from 1.6 to 1.7</p> - -<p>Since 3.11.0 the default value has changed from 1.7 to 1.8</p><br /><b>Default value is</b>: <code>1.8</code>.<br /><b>User property is</b>: <code>maven.compiler.source</code>.<br /></td> - </tr> - -<tr class="b"> - -<td align="left"><code><a href="#staleMillis"><staleMillis></a></code></td> - +<p>Since 3.11.0 the default value has changed from 1.7 to 1.8</p><br /><strong>Default</strong>: <code>1.8</code><br /><strong>User Property</strong>: <code>maven.compiler.source</code></td></tr> +<tr class="b"> +<td align="left"><a href="#staleMillis"><code><staleMillis></code></a></td> <td><code>int</code></td> - <td><code>-</code></td> - -<td>Sets the granularity in milliseconds of the last modification date for testing whether a source needs recompilation.<br /><b>Default value is</b>: <code>0</code>.<br /><b>User property is</b>: <code>lastModGranularityMs</code>.<br /></td> - </tr> - -<tr class="a"> - -<td align="left"><code><a href="#target"><target></a></code></td> - +<td>Sets the granularity in milliseconds of the last modification date for testing whether a source needs recompilation.<br /><strong>Default</strong>: <code>0</code><br /><strong>User Property</strong>: <code>lastModGranularityMs</code></td></tr> +<tr class="a"> +<td align="left"><a href="#target"><code><target></code></a></td> <td><code>String</code></td> - <td><code>-</code></td> - -<td> -<p>The -target argument for the Java compiler.</p> - +<td><p>The -target argument for the Java compiler.</p> <p><b>NOTE: </b></p> - <p>Since 3.8.0 the default value has changed from 1.5 to 1.6</p> - <p>Since 3.9.0 the default value has changed from 1.6 to 1.7</p> - -<p>Since 3.11.0 the default value has changed from 1.7 to 1.8</p><br /><b>Default value is</b>: <code>1.8</code>.<br /><b>User property is</b>: <code>maven.compiler.target</code>.<br /></td> - </tr> - -<tr class="b"> - -<td align="left"><code><a href="#testCompilerArgument"><testCompilerArgument></a></code></td> - +<p>Since 3.11.0 the default value has changed from 1.7 to 1.8</p><br /><strong>Default</strong>: <code>1.8</code><br /><strong>User Property</strong>: <code>maven.compiler.target</code></td></tr> +<tr class="b"> +<td align="left"><a href="#testCompilerArgument"><code><testCompilerArgument></code></a></td> <td><code>String</code></td> - <td><code>2.1</code></td> - -<td> -<p>Sets the unformatted argument string to be passed to test compiler if fork is set to true.</p> - -<p>This is because the list of valid arguments passed to a Java compiler varies based on the compiler version.</p><br /></td> - </tr> - -<tr class="a"> - -<td align="left"><code><a href="#testCompilerArguments"><testCompilerArguments></a></code></td> - +<td><p>Sets the unformatted argument string to be passed to test compiler if fork is set to true.</p> +<p>This is because the list of valid arguments passed to a Java compiler varies based on the compiler version.</p></td></tr> +<tr class="a"> +<td align="left"><a href="#testCompilerArguments"><code><testCompilerArguments></code></a></td> <td><code>Map<String,String></code></td> - <td><code>2.1</code></td> - -<td> -<p>Sets the arguments to be passed to test compiler (prepending a dash) if fork is set to true.</p> - -<p>This is because the list of valid arguments passed to a Java compiler varies based on the compiler version.</p><br /></td> - </tr> - -<tr class="b"> - -<td align="left"><code><a href="#testExcludes"><testExcludes></a></code></td> - +<td><p>Sets the arguments to be passed to test compiler (prepending a dash) if fork is set to true.</p> +<p>This is because the list of valid arguments passed to a Java compiler varies based on the compiler version.</p></td></tr> +<tr class="b"> +<td align="left"><a href="#testExcludes"><code><testExcludes></code></a></td> <td><code>Set<String></code></td> - <td><code>-</code></td> - -<td>A list of exclusion filters for the compiler.<br /></td> - </tr> - -<tr class="a"> - -<td align="left"><code><a href="#testIncludes"><testIncludes></a></code></td> - +<td>A list of exclusion filters for the compiler.</td></tr> +<tr class="a"> +<td align="left"><a href="#testIncludes"><code><testIncludes></code></a></td> <td><code>Set<String></code></td> - <td><code>-</code></td> - -<td>A list of inclusion filters for the compiler.<br /></td> - </tr> - -<tr class="b"> - -<td align="left"><code><a href="#testIncrementalExcludes"><testIncrementalExcludes></a></code></td> - +<td>A list of inclusion filters for the compiler.</td></tr> +<tr class="b"> +<td align="left"><a href="#testIncrementalExcludes"><code><testIncrementalExcludes></code></a></td> <td><code>Set<String></code></td> - <td><code>3.11</code></td> - -<td>A list of exclusion filters for the incremental calculation.<br /></td> - </tr> - -<tr class="a"> - -<td align="left"><code><a href="#testRelease"><testRelease></a></code></td> - +<td>A list of exclusion filters for the incremental calculation.</td></tr> +<tr class="a"> +<td align="left"><a href="#testRelease"><code><testRelease></code></a></td> <td><code>String</code></td> - <td><code>3.6</code></td> - -<td>the -release argument for the test Java compiler<br /><b>User property is</b>: <code>maven.compiler.testRelease</code>.<br /></td> - </tr> - -<tr class="b"> - -<td align="left"><code><a href="#testSource"><testSource></a></code></td> - +<td>the -release argument for the test Java compiler<br /><strong>User Property</strong>: <code>maven.compiler.testRelease</code></td></tr> +<tr class="b"> +<td align="left"><a href="#testSource"><code><testSource></code></a></td> <td><code>String</code></td> - <td><code>2.1</code></td> - -<td>The -source argument for the test Java compiler.<br /><b>User property is</b>: <code>maven.compiler.testSource</code>.<br /></td> - </tr> - -<tr class="a"> - -<td align="left"><code><a href="#testTarget"><testTarget></a></code></td> - +<td>The -source argument for the test Java compiler.<br /><strong>User Property</strong>: <code>maven.compiler.testSource</code></td></tr> +<tr class="a"> +<td align="left"><a href="#testTarget"><code><testTarget></code></a></td> <td><code>String</code></td> - <td><code>2.1</code></td> - -<td>The -target argument for the test Java compiler.<br /><b>User property is</b>: <code>maven.compiler.testTarget</code>.<br /></td> - </tr> - -<tr class="b"> - -<td align="left"><code><a href="#useIncrementalCompilation"><useIncrementalCompilation></a></code></td> - +<td>The -target argument for the test Java compiler.<br /><strong>User Property</strong>: <code>maven.compiler.testTarget</code></td></tr> +<tr class="b"> +<td align="left"><a href="#useIncrementalCompilation"><code><useIncrementalCompilation></code></a></td> <td><code>boolean</code></td> - <td><code>3.1</code></td> - -<td> -<p>to enable/disable incremental compilation feature.</p> - +<td><p>to enable/disable incremental compilation feature.</p> <p>This leads to two different modes depending on the underlying compiler. The default javac compiler does the following:</p> - <ul> - -<li>true <b>(default)</b> in this mode the compiler plugin determines whether any JAR files the current module depends on have changed in the current build run; or any source file was added, removed or changed since the last compilation. If this is the case, the compiler plugin recompiles all sources.</li> - -<li>false <b>(not recommended)</b> this only compiles source files which are newer than their corresponding class files, namely which have changed since the last compilation. This does not recompile other classes which use the changed class, potentially leaving them with references to methods that no longer exist, leading to errors at runtime.</li> -</ul><br /><b>Default value is</b>: <code>true</code>.<br /><b>User property is</b>: <code>maven.compiler.useIncrementalCompilation</code>.<br /></td> - </tr> - -<tr class="a"> - -<td align="left"><code><a href="#useModulePath"><useModulePath></a></code></td> - + <li>true <strong>(default)</strong> in this mode the compiler plugin determines whether any JAR files the current module depends on have changed in the current build run; or any source file was added, removed or changed since the last compilation. If this is the case, the compiler plugin recompiles all sources.</li> + <li>false <strong>(not recommended)</strong> this only compiles source files which are newer than their corresponding class files, namely which have changed since the last compilation. This does not recompile other classes which use the changed class, potentially leaving them with references to methods that no longer exist, leading to errors at runtime.</li> +</ul><br /><strong>Default</strong>: <code>true</code><br /><strong>User Property</strong>: <code>maven.compiler.useIncrementalCompilation</code></td></tr> +<tr class="a"> +<td align="left"><a href="#useModulePath"><code><useModulePath></code></a></td> <td><code>boolean</code></td> - <td><code>3.11</code></td> - -<td> -<p>When <code>true</code>, uses the module path when compiling with a release or target of 9+ and <i>module-info.java</i> or <i>module-info.class</i> is present. When <code>false</code>, always uses the class path.</p><br /><b>Default value is</b>: <code>true</code>.<br /></td> - </tr> - -<tr class="b"> - -<td align="left"><code><a href="#verbose"><verbose></a></code></td> - +<td><p>When <code>true</code>, uses the module path when compiling with a release or target of 9+ and <em>module-info.java</em> or <em>module-info.class</em> is present. When <code>false</code>, always uses the class path.</p><br /><strong>Default</strong>: <code>true</code></td></tr> +<tr class="b"> +<td align="left"><a href="#verbose"><code><verbose></code></a></td> <td><code>boolean</code></td> - <td><code>-</code></td> - -<td>Set to <code>true</code> to show messages about what the compiler is doing.<br /><b>Default value is</b>: <code>false</code>.<br /><b>User property is</b>: <code>maven.compiler.verbose</code>.<br /></td> - </tr> - </table> - </section> - <section> -<h3><a name="Parameter_Details"></a>Parameter Details</h3> - <section> -<h4><a name="a.3CannotationProcessorPaths.3E"></a><b><a name="annotationProcessorPaths"><annotationProcessorPaths></a></b></h4> - -<div> -<p>Classpath elements to supply as annotation processor path. If specified, the compiler will detect annotation processors only in those classpath elements. If omitted, the default classpath is used to detect annotation processors. The detection itself depends on the configuration of <code>annotationProcessors</code>.</p> - +<td>Set to <code>true</code> to show messages about what the compiler is doing.<br /><strong>Default</strong>: <code>false</code><br /><strong>User Property</strong>: <code>maven.compiler.verbose</code></td></tr></table></section><section> +<h3><a name="Parameter_Details"></a>Parameter Details</h3><a name="Parameter_Details"></a><a name="annotationProcessorPaths"><section> +<h4><a name="a.3CannotationProcessorPaths.3E"></a><annotationProcessorPaths></h4><a name="a.3CannotationProcessorPaths.3E"></a></a> +<div><p>Classpath elements to supply as annotation processor path. If specified, the compiler will detect annotation processors only in those classpath elements. If omitted, the default classpath is used to detect annotation processors. The detection itself depends on the configuration of <code>annotationProcessors</code>.</p> <p>Each classpath element is specified using their Maven coordinates (groupId, artifactId, version, classifier, type). Transitive dependencies are added automatically. Exclusions are supported as well. Example:</p> - -<div> <pre><configuration> <annotationProcessorPaths> <path> <groupId>org.sample</groupId> <artifactId>sample-annotation-processor</artifactId> - <version>1.2.3</version> + <version>1.2.3</version> <!-- Optional - taken from dependency management if not specified --> <!-- Optionally exclude transitive dependencies --> <exclusions> <exclusion> @@ -855,360 +512,200 @@ <!-- ... more ... --> </annotationProcessorPaths> </configuration> -</pre></div> <b>Note:</b> Exclusions are supported from version 3.11.0.</div> - +</pre><b>Note:</b> Exclusions are supported from version 3.11.0.</div> <ul> - -<li><b>Type</b>: <code><a href="apidocs/org/apache/maven/plugin/compiler/DependencyCoordinate.html">java.util.List<org.apache.maven.plugin.compiler.DependencyCoordinate></a></code></li> - -<li><b>Since</b>: <code>3.5</code></li> - -<li><b>Required</b>: <code>No</code></li> - </ul><hr /></section><section> -<h4><a name="a.3CannotationProcessors.3E"></a><b><a name="annotationProcessors"><annotationProcessors></a></b></h4> - -<div> -<p>Names of annotation processors to run. Only applies to JDK 1.6+ If not set, the default annotation processors discovery process applies.</p></div> - -<ul> - -<li><b>Type</b>: <code>java.lang.String[]</code></li> - -<li><b>Since</b>: <code>2.2</code></li> - -<li><b>Required</b>: <code>No</code></li> - </ul><hr /></section><section> -<h4><a name="a.3CcompilerArgs.3E"></a><b><a name="compilerArgs"><compilerArgs></a></b></h4> - -<div> -<p>Sets the arguments to be passed to the compiler.</p> - +<li><strong>Type</strong>: <a href="apidocs/org/apache/maven/plugin/compiler/DependencyCoordinate.html"><code>java.util.List<org.apache.maven.plugin.compiler.DependencyCoordinate></code></a></li> +<li><strong>Since</strong>: <code>3.5</code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.no</code></li></ul><hr /></section><a name="annotationProcessorPathsUseDepMgmt"><section> +<h4><a name="a.3CannotationProcessorPathsUseDepMgmt.3E"></a><annotationProcessorPathsUseDepMgmt></h4><a name="a.3CannotationProcessorPathsUseDepMgmt.3E"></a></a> +<div><p>Whether to use the Maven dependency management section when resolving transitive dependencies of annotation processor paths.</p> +<p>This flag does not enable / disable the ability to resolve the version of annotation processor paths from dependency management section. It only influences the resolution o transitive dependencies of those top-level paths.</p></div> +<ul> +<li><strong>Type</strong>: <code>boolean</code></li> +<li><strong>Since</strong>: <code>3.12.0</code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.no</code></li> +<li><strong>Default</strong>: <code>false</code></li></ul><hr /></section><a name="annotationProcessors"><section> +<h4><a name="a.3CannotationProcessors.3E"></a><annotationProcessors></h4><a name="a.3CannotationProcessors.3E"></a></a> +<div><p>Names of annotation processors to run. Only applies to JDK 1.6+ If not set, the default annotation processors discovery process applies.</p></div> +<ul> +<li><strong>Type</strong>: <code>java.lang.String[]</code></li> +<li><strong>Since</strong>: <code>2.2</code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.no</code></li></ul><hr /></section><a name="compilerArgs"><section> +<h4><a name="a.3CcompilerArgs.3E"></a><compilerArgs></h4><a name="a.3CcompilerArgs.3E"></a></a> +<div><p>Sets the arguments to be passed to the compiler.</p> <p>Note that <code>-J</code> options are only passed through if <a href="#fork"><code>fork</code></a> is set to <code>true</code>.</p> Example: - -<div> <pre><compilerArgs> <arg>-Xmaxerrs</arg> <arg>1000</arg> <arg>-Xlint</arg> <arg>-J-Duser.language=en_us</arg> </compilerArgs> -</pre></div></div> - +</pre></div> <ul> - -<li><b>Type</b>: <code>java.util.List<java.lang.String></code></li> - -<li><b>Since</b>: <code>3.1</code></li> - -<li><b>Required</b>: <code>No</code></li> - </ul><hr /></section><section> -<h4><a name="a.3CcompilerArgument.3E"></a><b><a name="compilerArgument"><compilerArgument></a></b></h4> - -<div> -<p>Sets the unformatted single argument string to be passed to the compiler. To pass multiple arguments such as <code>-Xmaxerrs 1000</code> (which are actually two arguments) you have to use <a href="#compilerArguments"><code>compilerArguments</code></a>.</p> - +<li><strong>Type</strong>: <code>java.util.List<java.lang.String></code></li> +<li><strong>Since</strong>: <code>3.1</code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.no</code></li></ul><hr /></section><a name="compilerArgument"><section> +<h4><a name="a.3CcompilerArgument.3E"></a><compilerArgument></h4><a name="a.3CcompilerArgument.3E"></a></a> +<div><p>Sets the unformatted single argument string to be passed to the compiler. To pass multiple arguments such as <code>-Xmaxerrs 1000</code> (which are actually two arguments) you have to use <a href="#compilerArgs"><code>compilerArgs</code></a>.</p> <p>This is because the list of valid arguments passed to a Java compiler varies based on the compiler version.</p> - <p>Note that <code>-J</code> options are only passed through if <a href="#fork"><code>fork</code></a> is set to <code>true</code>.</p></div> - <ul> - -<li><b>Type</b>: <code>java.lang.String</code></li> - -<li><b>Required</b>: <code>No</code></li> - </ul><hr /></section><section> -<h4><a name="a.3CcompilerArguments.3E"></a><b><a name="compilerArguments"><compilerArguments></a></b></h4> - -<div><b>Deprecated.</b> use <a href="#compilerArgs"><code>compilerArgs</code></a> instead.</div> - -<div> -<p>Sets the arguments to be passed to the compiler (prepending a dash).</p> - +<li><strong>Type</strong>: <code>java.lang.String</code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.no</code></li></ul><hr /></section><a name="compilerArguments"><section> +<h4><a name="a.3CcompilerArguments.3E"></a><compilerArguments></h4><a name="a.3CcompilerArguments.3E"></a></a> +<div><strong>Deprecated.</strong> use <a href="#compilerArgs"><code>compilerArgs</code></a> instead.</div> +<div><p>Sets the arguments to be passed to the compiler (prepending a dash).</p> <p>This is because the list of valid arguments passed to a Java compiler varies based on the compiler version.</p> - <p>Note that <code>-J</code> options are only passed through if <a href="#fork"><code>fork</code></a> is set to <code>true</code>.</p> - <p>To pass <code>-Xmaxerrs 1000 -Xlint -Xlint:-path -Averbose=true</code> you should include the following:</p> - -<div> <pre><compilerArguments> <Xmaxerrs>1000</Xmaxerrs> <Xlint/> <Xlint:-path/> <Averbose>true</Averbose> </compilerArguments> -</pre></div></div> - +</pre></div> <ul> - -<li><b>Type</b>: <code>java.util.Map<java.lang.String, java.lang.String></code></li> - -<li><b>Since</b>: <code>2.0.1</code></li> - -<li><b>Required</b>: <code>No</code></li> - </ul><hr /></section><section> -<h4><a name="a.3CcompilerId.3E"></a><b><a name="compilerId"><compilerId></a></b></h4> - +<li><strong>Type</strong>: <code>java.util.Map<java.lang.String, java.lang.String></code></li> +<li><strong>Since</strong>: <code>2.0.1</code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.no</code></li></ul><hr /></section><a name="compilerId"><section> +<h4><a name="a.3CcompilerId.3E"></a><compilerId></h4><a name="a.3CcompilerId.3E"></a></a> <div>The compiler id of the compiler to use. See this <a href="non-javac-compilers.html">guide</a> for more information.</div> - <ul> - -<li><b>Type</b>: <code>java.lang.String</code></li> - -<li><b>Required</b>: <code>No</code></li> - -<li><b>User Property</b>: <code>maven.compiler.compilerId</code></li> - -<li><b>Default</b>: <code>javac</code></li> - </ul><hr /></section><section> -<h4><a name="a.3CcompilerReuseStrategy.3E"></a><b><a name="compilerReuseStrategy"><compilerReuseStrategy></a></b></h4> - +<li><strong>Type</strong>: <code>java.lang.String</code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.no</code></li> +<li><strong>User Property</strong>: <code>maven.compiler.compilerId</code></li> +<li><strong>Default</strong>: <code>javac</code></li></ul><hr /></section><a name="compilerReuseStrategy"><section> +<h4><a name="a.3CcompilerReuseStrategy.3E"></a><compilerReuseStrategy></h4><a name="a.3CcompilerReuseStrategy.3E"></a></a> <div>Strategy to re use javacc class created: - <ul> - -<li><code>reuseCreated</code> (default): will reuse already created but in case of multi-threaded builds, each thread will have its own instance</li> - -<li><code>reuseSame</code>: the same Javacc class will be used for each compilation even for multi-threaded build</li> - -<li><code>alwaysNew</code>: a new Javacc class will be created for each compilation</li> + <li><code>reuseCreated</code> (default): will reuse already created but in case of multi-threaded builds, each thread will have its own instance</li> + <li><code>reuseSame</code>: the same Javacc class will be used for each compilation even for multi-threaded build</li> + <li><code>alwaysNew</code>: a new Javacc class will be created for each compilation</li> </ul> Note this parameter value depends on the os/jdk you are using, but the default value should work on most of env.</div> - -<ul> - -<li><b>Type</b>: <code>java.lang.String</code></li> - -<li><b>Since</b>: <code>2.5</code></li> - -<li><b>Required</b>: <code>No</code></li> - -<li><b>User Property</b>: <code>maven.compiler.compilerReuseStrategy</code></li> - -<li><b>Default</b>: <code>${reuseCreated}</code></li> - </ul><hr /></section><section> -<h4><a name="a.3CcompilerVersion.3E"></a><b><a name="compilerVersion"><compilerVersion></a></b></h4> - -<div>Version of the compiler to use, ex. "1.3", "1.5", if <a href="#fork"><code>fork</code></a> is set to <code>true</code>.</div> - <ul> - -<li><b>Type</b>: <code>java.lang.String</code></li> - -<li><b>Required</b>: <code>No</code></li> - -<li><b>User Property</b>: <code>maven.compiler.compilerVersion</code></li> - </ul><hr /></section><section> -<h4><a name="a.3CcreateMissingPackageInfoClass.3E"></a><b><a name="createMissingPackageInfoClass"><createMissingPackageInfoClass></a></b></h4> - +<li><strong>Type</strong>: <code>java.lang.String</code></li> +<li><strong>Since</strong>: <code>2.5</code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.no</code></li> +<li><strong>User Property</strong>: <code>maven.compiler.compilerReuseStrategy</code></li> +<li><strong>Default</strong>: <code>${reuseCreated}</code></li></ul><hr /></section><a name="compilerVersion"><section> +<h4><a name="a.3CcompilerVersion.3E"></a><compilerVersion></h4><a name="a.3CcompilerVersion.3E"></a></a> +<div>Version of the compiler to use, ex. "1.3", "1.5", if <a href="#fork"><code>fork</code></a> is set to <code>true</code>.</div> +<ul> +<li><strong>Type</strong>: <code>java.lang.String</code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.no</code></li> +<li><strong>User Property</strong>: <code>maven.compiler.compilerVersion</code></li></ul><hr /></section><a name="compileSourceRoots"><section> +<h4><a name="a.3CcompileSourceRoots.3E"></a><compileSourceRoots></h4><a name="a.3CcompileSourceRoots.3E"></a></a> +<div>The source directories containing the test-source to be compiled.</div> +<ul> +<li><strong>Type</strong>: <code>java.util.List<java.lang.String></code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.yes</code></li> +<li><strong>Default</strong>: <code>${project.testCompileSourceRoots}</code></li></ul><hr /></section><a name="createMissingPackageInfoClass"><section> +<h4><a name="a.3CcreateMissingPackageInfoClass.3E"></a><createMissingPackageInfoClass></h4><a name="a.3CcreateMissingPackageInfoClass.3E"></a></a> <div>Package info source files that only contain javadoc and no annotation on the package can lead to no class file being generated by the compiler. This causes a file miss on the next compilations and forces an unnecessary recompilation. The default value of <code>true</code> causes an empty class file to be generated. This behavior can be changed by setting this parameter to <code>false</code>.</div> - <ul> - -<li><b>Type</b>: <code>boolean</code></li> - -<li><b>Since</b>: <code>3.10</code></li> - -<li><b>Required</b>: <code>No</code></li> - -<li><b>User Property</b>: <code>maven.compiler.createMissingPackageInfoClass</code></li> - -<li><b>Default</b>: <code>true</code></li> - </ul><hr /></section><section> -<h4><a name="a.3Cdebug.3E"></a><b><a name="debug"><debug></a></b></h4> - +<li><strong>Type</strong>: <code>boolean</code></li> +<li><strong>Since</strong>: <code>3.10</code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.no</code></li> +<li><strong>User Property</strong>: <code>maven.compiler.createMissingPackageInfoClass</code></li> +<li><strong>Default</strong>: <code>true</code></li></ul><hr /></section><a name="debug"><section> +<h4><a name="a.3Cdebug.3E"></a><debug></h4><a name="a.3Cdebug.3E"></a></a> <div>Set to <code>true</code> to include debugging information in the compiled class files.</div> - <ul> - -<li><b>Type</b>: <code>boolean</code></li> - -<li><b>Required</b>: <code>No</code></li> - -<li><b>User Property</b>: <code>maven.compiler.debug</code></li> - -<li><b>Default</b>: <code>true</code></li> - </ul><hr /></section><section> -<h4><a name="a.3CdebugFileName.3E"></a><b><a name="debugFileName"><debugFileName></a></b></h4> - +<li><strong>Type</strong>: <code>boolean</code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.no</code></li> +<li><strong>User Property</strong>: <code>maven.compiler.debug</code></li> +<li><strong>Default</strong>: <code>true</code></li></ul><hr /></section><a name="debugFileName"><section> +<h4><a name="a.3CdebugFileName.3E"></a><debugFileName></h4><a name="a.3CdebugFileName.3E"></a></a> <div>when forking and debug activated the commandline used will be dumped in this file</div> - <ul> - -<li><b>Type</b>: <code>java.lang.String</code></li> - -<li><b>Since</b>: <code>3.10.0</code></li> - -<li><b>Required</b>: <code>No</code></li> - -<li><b>Default</b>: <code>javac-test</code></li> - </ul><hr /></section><section> -<h4><a name="a.3Cdebuglevel.3E"></a><b><a name="debuglevel"><debuglevel></a></b></h4> - +<li><strong>Type</strong>: <code>java.lang.String</code></li> +<li><strong>Since</strong>: <code>3.10.0</code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.no</code></li> +<li><strong>Default</strong>: <code>javac-test</code></li></ul><hr /></section><a name="debuglevel"><section> +<h4><a name="a.3Cdebuglevel.3E"></a><debuglevel></h4><a name="a.3Cdebuglevel.3E"></a></a> <div>Keyword list to be appended to the <code>-g</code> command-line switch. Legal values are none or a comma-separated list of the following keywords: <code>lines</code>, <code>vars</code>, and <code>source</code>. If debug level is not specified, by default, nothing will be appended to <code>-g</code>. If debug is not turned on, this attribute will be ignored.</div> - <ul> - -<li><b>Type</b>: <code>java.lang.String</code></li> - -<li><b>Since</b>: <code>2.1</code></li> - -<li><b>Required</b>: <code>No</code></li> - -<li><b>User Property</b>: <code>maven.compiler.debuglevel</code></li> - </ul><hr /></section><section> -<h4><a name="a.3CenablePreview.3E"></a><b><a name="enablePreview"><enablePreview></a></b></h4> - +<li><strong>Type</strong>: <code>java.lang.String</code></li> +<li><strong>Since</strong>: <code>2.1</code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.no</code></li> +<li><strong>User Property</strong>: <code>maven.compiler.debuglevel</code></li></ul><hr /></section><a name="enablePreview"><section> +<h4><a name="a.3CenablePreview.3E"></a><enablePreview></h4><a name="a.3CenablePreview.3E"></a></a> <div>Set to <code>true</code> to Enable preview language features of the java compiler</div> - <ul> - -<li><b>Type</b>: <code>boolean</code></li> - -<li><b>Since</b>: <code>3.10.1</code></li> - -<li><b>Required</b>: <code>No</code></li> - -<li><b>User Property</b>: <code>maven.compiler.enablePreview</code></li> - -<li><b>Default</b>: <code>false</code></li> - </ul><hr /></section><section> -<h4><a name="a.3Cencoding.3E"></a><b><a name="encoding"><encoding></a></b></h4> - +<li><strong>Type</strong>: <code>boolean</code></li> +<li><strong>Since</strong>: <code>3.10.1</code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.no</code></li> +<li><strong>User Property</strong>: <code>maven.compiler.enablePreview</code></li> +<li><strong>Default</strong>: <code>false</code></li></ul><hr /></section><a name="encoding"><section> +<h4><a name="a.3Cencoding.3E"></a><encoding></h4><a name="a.3Cencoding.3E"></a></a> <div>The -encoding argument for the Java compiler.</div> - <ul> - -<li><b>Type</b>: <code>java.lang.String</code></li> - -<li><b>Since</b>: <code>2.1</code></li> - -<li><b>Required</b>: <code>No</code></li> - -<li><b>User Property</b>: <code>encoding</code></li> - -<li><b>Default</b>: <code>${project.build.sourceEncoding}</code></li> - </ul><hr /></section><section> -<h4><a name="a.3Cexecutable.3E"></a><b><a name="executable"><executable></a></b></h4> - +<li><strong>Type</strong>: <code>java.lang.String</code></li> +<li><strong>Since</strong>: <code>2.1</code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.no</code></li> +<li><strong>User Property</strong>: <code>encoding</code></li> +<li><strong>Default</strong>: <code>${project.build.sourceEncoding}</code></li></ul><hr /></section><a name="executable"><section> +<h4><a name="a.3Cexecutable.3E"></a><executable></h4><a name="a.3Cexecutable.3E"></a></a> <div>Sets the executable of the compiler to use when <a href="#fork"><code>fork</code></a> is <code>true</code>.</div> - <ul> - -<li><b>Type</b>: <code>java.lang.String</code></li> - -<li><b>Required</b>: <code>No</code></li> - -<li><b>User Property</b>: <code>maven.compiler.executable</code></li> - </ul><hr /></section><section> -<h4><a name="a.3CfailOnError.3E"></a><b><a name="failOnError"><failOnError></a></b></h4> - +<li><strong>Type</strong>: <code>java.lang.String</code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.no</code></li> +<li><strong>User Property</strong>: <code>maven.compiler.executable</code></li></ul><hr /></section><a name="failOnError"><section> +<h4><a name="a.3CfailOnError.3E"></a><failOnError></h4><a name="a.3CfailOnError.3E"></a></a> <div>Indicates whether the build will continue even if there are compilation errors.</div> - <ul> - -<li><b>Type</b>: <code>boolean</code></li> - -<li><b>Since</b>: <code>2.0.2</code></li> - -<li><b>Required</b>: <code>No</code></li> - -<li><b>User Property</b>: <code>maven.compiler.failOnError</code></li> - -<li><b>Default</b>: <code>true</code></li> - </ul><hr /></section><section> -<h4><a name="a.3CfailOnWarning.3E"></a><b><a name="failOnWarning"><failOnWarning></a></b></h4> - +<li><strong>Type</strong>: <code>boolean</code></li> +<li><strong>Since</strong>: <code>2.0.2</code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.no</code></li> +<li><strong>User Property</strong>: <code>maven.compiler.failOnError</code></li> +<li><strong>Default</strong>: <code>true</code></li></ul><hr /></section><a name="failOnWarning"><section> +<h4><a name="a.3CfailOnWarning.3E"></a><failOnWarning></h4><a name="a.3CfailOnWarning.3E"></a></a> <div>Indicates whether the build will continue even if there are compilation warnings.</div> - <ul> - -<li><b>Type</b>: <code>boolean</code></li> - -<li><b>Since</b>: <code>3.6</code></li> - -<li><b>Required</b>: <code>No</code></li> - -<li><b>User Property</b>: <code>maven.compiler.failOnWarning</code></li> - -<li><b>Default</b>: <code>false</code></li> - </ul><hr /></section><section> -<h4><a name="a.3CfileExtensions.3E"></a><b><a name="fileExtensions"><fileExtensions></a></b></h4> - -<div>File extensions to check timestamp for incremental build. Default contains only <code>class</code> and <code>jar</code>.</div> - -<ul> - -<li><b>Type</b>: <code>java.util.List<java.lang.String></code></li> - -<li><b>Since</b>: <code>3.1</code></li> - -<li><b>Required</b>: <code>No</code></li> - </ul><hr /></section><section> -<h4><a name="a.3CforceJavacCompilerUse.3E"></a><b><a name="forceJavacCompilerUse"><forceJavacCompilerUse></a></b></h4> - +<li><strong>Type</strong>: <code>boolean</code></li> +<li><strong>Since</strong>: <code>3.6</code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.no</code></li> +<li><strong>User Property</strong>: <code>maven.compiler.failOnWarning</code></li> +<li><strong>Default</strong>: <code>false</code></li></ul><hr /></section><a name="fileExtensions"><section> +<h4><a name="a.3CfileExtensions.3E"></a><fileExtensions></h4><a name="a.3CfileExtensions.3E"></a></a> +<div>File extensions to check timestamp for incremental build.</div> +<ul> +<li><strong>Type</strong>: <code>java.util.Set<java.lang.String></code></li> +<li><strong>Since</strong>: <code>3.1</code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.no</code></li> +<li><strong>Default</strong>: <code>class,jar</code></li></ul><hr /></section><a name="forceJavacCompilerUse"><section> +<h4><a name="a.3CforceJavacCompilerUse.3E"></a><forceJavacCompilerUse></h4><a name="a.3CforceJavacCompilerUse.3E"></a></a> <div>compiler can now use javax.tools if available in your current jdk, you can disable this feature using -Dmaven.compiler.forceJavacCompilerUse=true or in the plugin configuration</div> - <ul> - -<li><b>Type</b>: <code>boolean</code></li> - -<li><b>Since</b>: <code>3.0</code></li> - -<li><b>Required</b>: <code>No</code></li> - -<li><b>User Property</b>: <code>maven.compiler.forceJavacCompilerUse</code></li> - -<li><b>Default</b>: <code>false</code></li> - </ul><hr /></section><section> -<h4><a name="a.3Cfork.3E"></a><b><a name="fork"><fork></a></b></h4> - +<li><strong>Type</strong>: <code>boolean</code></li> +<li><strong>Since</strong>: <code>3.0</code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.no</code></li> +<li><strong>User Property</strong>: <code>maven.compiler.forceJavacCompilerUse</code></li> +<li><strong>Default</strong>: <code>false</code></li></ul><hr /></section><a name="fork"><section> +<h4><a name="a.3Cfork.3E"></a><fork></h4><a name="a.3Cfork.3E"></a></a> <div>Allows running the compiler in a separate process. If <code>false</code> it uses the built in compiler, while if <code>true</code> it will use an executable.</div> - <ul> - -<li><b>Type</b>: <code>boolean</code></li> - -<li><b>Required</b>: <code>No</code></li> - -<li><b>User Property</b>: <code>maven.compiler.fork</code></li> - -<li><b>Default</b>: <code>false</code></li> - </ul><hr /></section><section> -<h4><a name="a.3CgeneratedTestSourcesDirectory.3E"></a><b><a name="generatedTestSourcesDirectory"><generatedTestSourcesDirectory></a></b></h4> - -<div> -<p>Specify where to place generated source files created by annotation processing. Only applies to JDK 1.6+</p></div> - -<ul> - -<li><b>Type</b>: <code>java.io.File</code></li> - -<li><b>Since</b>: <code>2.2</code></li> - -<li><b>Required</b>: <code>No</code></li> - -<li><b>Default</b>: <code>${project.build.directory}/generated-test-sources/test-annotations</code></li> - </ul><hr /></section><section> -<h4><a name="a.3Cimplicit.3E"></a><b><a name="implicit"><implicit></a></b></h4> - +<li><strong>Type</strong>: <code>boolean</code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.no</code></li> +<li><strong>User Property</strong>: <code>maven.compiler.fork</code></li> +<li><strong>Default</strong>: <code>false</code></li></ul><hr /></section><a name="generatedTestSourcesDirectory"><section> +<h4><a name="a.3CgeneratedTestSourcesDirectory.3E"></a><generatedTestSourcesDirectory></h4><a name="a.3CgeneratedTestSourcesDirectory.3E"></a></a> +<div><p>Specify where to place generated source files created by annotation processing. Only applies to JDK 1.6+</p></div> +<ul> +<li><strong>Type</strong>: <code>java.io.File</code></li> +<li><strong>Since</strong>: <code>2.2</code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.no</code></li> +<li><strong>Default</strong>: <code>${project.build.directory}/generated-test-sources/test-annotations</code></li></ul><hr /></section><a name="implicit"><section> +<h4><a name="a.3Cimplicit.3E"></a><implicit></h4><a name="a.3Cimplicit.3E"></a></a> <div>Keyword to be appended to the <code>-implicit:</code> command-line switch.</div> - <ul> - -<li><b>Type</b>: <code>java.lang.String</code></li> - -<li><b>Since</b>: <code>3.10.2</code></li> - -<li><b>Required</b>: <code>No</code></li> - -<li><b>User Property</b>: <code>maven.compiler.implicit</code></li> - </ul><hr /></section><section> -<h4><a name="a.3CjdkToolchain.3E"></a><b><a name="jdkToolchain"><jdkToolchain></a></b></h4> - -<div> -<p>Specify the requirements for this jdk toolchain for using a different <code>javac</code> than the one of the JRE used by Maven. This overrules the toolchain selected by the <a class="externalLink" href="https://maven.apache.org/plugins/maven-toolchains-plugin/">maven-toolchain-plugin</a>.</p> (see <a class="externalLink" href="https://maven.apache.org/guides/mini/guide-using-toolchains.html"> Guide to Toolchains</a> for more info) - -<div> +<li><strong>Type</strong>: <code>java.lang.String</code></li> +<li><strong>Since</strong>: <code>3.10.2</code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.no</code></li> +<li><strong>User Property</strong>: <code>maven.compiler.implicit</code></li></ul><hr /></section><a name="jdkToolchain"><section> +<h4><a name="a.3CjdkToolchain.3E"></a><jdkToolchain></h4><a name="a.3CjdkToolchain.3E"></a></a> +<div><p>Specify the requirements for this jdk toolchain for using a different <code>javac</code> than the one of the JRE used by Maven. This overrules the toolchain selected by the <a href="https://maven.apache.org/plugins/maven-toolchains-plugin/">maven-toolchain-plugin</a>.</p> (see <a href="https://maven.apache.org/guides/mini/guide-using-toolchains.html"> Guide to Toolchains</a> for more info) <pre><configuration> <jdkToolchain> <version>11</version> @@ -1223,417 +720,221 @@ </jdkToolchain> ... </configuration> -</pre></div> <b>note:</b> requires at least Maven 3.3.1</div> - +</pre><strong>note:</strong> requires at least Maven 3.3.1</div> <ul> - -<li><b>Type</b>: <code>java.util.Map<java.lang.String, java.lang.String></code></li> - -<li><b>Since</b>: <code>3.6</code></li> - -<li><b>Required</b>: <code>No</code></li> - </ul><hr /></section><section> -<h4><a name="a.3Cmaxmem.3E"></a><b><a name="maxmem"><maxmem></a></b></h4> - -<div>Sets the maximum size, in megabytes, of the memory allocation pool, ex. "128", "128m" if <a href="#fork"><code>fork</code></a> is set to <code>true</code>.</div> - -<ul> - -<li><b>Type</b>: <code>java.lang.String</code></li> - -<li><b>Since</b>: <code>2.0.1</code></li> - -<li><b>Required</b>: <code>No</code></li> - -<li><b>User Property</b>: <code>maven.compiler.maxmem</code></li> - </ul><hr /></section><section> -<h4><a name="a.3Cmeminitial.3E"></a><b><a name="meminitial"><meminitial></a></b></h4> - -<div>Initial size, in megabytes, of the memory allocation pool, ex. "64", "64m" if <a href="#fork"><code>fork</code></a> is set to <code>true</code>.</div> - -<ul> - -<li><b>Type</b>: <code>java.lang.String</code></li> - -<li><b>Since</b>: <code>2.0.1</code></li> - -<li><b>Required</b>: <code>No</code></li> - -<li><b>User Property</b>: <code>maven.compiler.meminitial</code></li> - </ul><hr /></section><section> -<h4><a name="a.3Coptimize.3E"></a><b><a name="optimize"><optimize></a></b></h4> - -<div><b>Deprecated.</b> This property is a no-op in <code>javac</code>.</div> - +<li><strong>Type</strong>: <code>java.util.Map<java.lang.String, java.lang.String></code></li> +<li><strong>Since</strong>: <code>3.6</code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.no</code></li></ul><hr /></section><a name="maxmem"><section> +<h4><a name="a.3Cmaxmem.3E"></a><maxmem></h4><a name="a.3Cmaxmem.3E"></a></a> +<div>Sets the maximum size, in megabytes, of the memory allocation pool, ex. "128", "128m" if <a href="#fork"><code>fork</code></a> is set to <code>true</code>.</div> +<ul> +<li><strong>Type</strong>: <code>java.lang.String</code></li> +<li><strong>Since</strong>: <code>2.0.1</code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.no</code></li> +<li><strong>User Property</strong>: <code>maven.compiler.maxmem</code></li></ul><hr /></section><a name="meminitial"><section> +<h4><a name="a.3Cmeminitial.3E"></a><meminitial></h4><a name="a.3Cmeminitial.3E"></a></a> +<div>Initial size, in megabytes, of the memory allocation pool, ex. "64", "64m" if <a href="#fork"><code>fork</code></a> is set to <code>true</code>.</div> +<ul> +<li><strong>Type</strong>: <code>java.lang.String</code></li> +<li><strong>Since</strong>: <code>2.0.1</code></li> +<li><strong>Required</strong>: <code>report.plugin.goal.no</code></li> +<li><strong>User Property</strong>: <code>maven.compiler.meminitial</code></li></ul><hr /></section><a name="optimize"><section> +<h4><a name="a.3Coptimize.3E"></a><optimize></h4><a name="a.3Coptimize.3E"></a></a> +<div><strong>Deprecated.</strong> This property is a no-op in <code>javac</code>.</div> <div>Set to <code>true</code> to optimize the compiled code using the compiler's optimization methods.</div> - <ul> -
[... 511 lines stripped ...]
