| --- |
| layout: post |
| title: Apache Maven Compiler Plugin Version 3.9.0 Released |
| date: '2022-01-12T14:39:39+00:00' |
| permalink: apache-maven-compiler-plugin-version4 |
| --- |
| <div class="entry-content"><p>The Apache Maven team is pleased to announce the release of the
|
| <a href="https://maven.apache.org/plugins/maven-compiler-plugin/">Apache Maven Compiler Plugin, version 3.9.0</a>.</p>
|
|
|
| <p>The Compiler Plugin is used to compile the sources of your project.</p>
|
|
|
| <p>You should specify the version in your project’s plugin configuration:</p>
|
|
|
| <figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
|
| <span class='line-number'>2</span>
|
| <span class='line-number'>3</span>
|
| <span class='line-number'>4</span>
|
| <span class='line-number'>5</span>
|
| </pre></td><td class='code'><pre><code class='xml'><span class='line'><span class="nt"><plugin></span>
|
| </span><span class='line'> <span class="nt"><groupId></span>org.apache.maven.plugins<span class="nt"></groupId></span>
|
| </span><span class='line'> <span class="nt"><artifactId></span>maven-compiler-plugin<span class="nt"></artifactId></span>
|
| </span><span class='line'> <span class="nt"><version></span>3.9.0<span class="nt"></version></span>
|
| </span><span class='line'><span class="nt"></plugin></span>
|
| </span></code></pre></td></tr></table></div></figure>
|
|
|
|
|
|
|
|
|
| <!-- more -->
|
|
|
|
|
| <p><a href="https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12317225&version=12345214">Release Notes – Maven Compiler Plugin – Version 3.9.0</a></p>
|
|
|
| <ul>
|
| <li><p>Bugs:</p>
|
|
|
| <ul>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-272">MCOMPILER-272</a> – When annotationProcessorPaths has multiple entries, only the transitive dependencies of the first entry are added</li>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-359">MCOMPILER-359</a> – plexus-java 0.9.10 causes a NullPointer in compiler-plugin 3.8.0</li>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-373">MCOMPILER-373</a> – Unable to compile MR jar code against older directories</li>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-410">MCOMPILER-410</a> – CI Broken by JDK 15 changes</li>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-455">MCOMPILER-455</a> – preparePaths does not take toolchain into account when parsing module-info.class</li>
|
| </ul>
|
| </li>
|
| <li><p>Improvements:</p>
|
|
|
| <ul>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-376">MCOMPILER-376</a> – Change default source/target to 1.7 (new minimum for JDK 12)</li>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-382">MCOMPILER-382</a> – Remove superfluous exception declarations</li>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-383">MCOMPILER-383</a> – Use Java 7 type inference more</li>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-384">MCOMPILER-384</a> – Remove null checks in conjunction with instanceof</li>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-385">MCOMPILER-385</a> – Minor performance improvements in CompilerMojo</li>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-404">MCOMPILER-404</a> – Update default source/target from 1.6 to 1.7</li>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-405">MCOMPILER-405</a> – Update plexus-java to 1.1.0</li>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-411">MCOMPILER-411</a> – make build Reproducible</li>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-427">MCOMPILER-427</a> – Lack of guide for cross-compilation for JDK 9+</li>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-428">MCOMPILER-428</a> – Documentation regarding useIncrementalCompilation not very useful</li>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-449">MCOMPILER-449</a> – Improve <jdkToolchain> parameter description</li>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-471">MCOMPILER-471</a> – Require Java 8</li>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-475">MCOMPILER-475</a> – Shared GitHub Actions</li>
|
| </ul>
|
| </li>
|
| <li><p>Tasks:</p>
|
|
|
| <ul>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-189">MCOMPILER-189</a> – Source Xref report is missing classes due to simple name collision, update maven-jxr-plugin</li>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-398">MCOMPILER-398</a> – Simplify the implementation of the inclusion/exclusion logic</li>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-467">MCOMPILER-467</a> – Improve compile mojo parameter multiReleaseOutput docs</li>
|
| </ul>
|
| </li>
|
| <li><p>Dependency upgrade:</p>
|
|
|
| <ul>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-399">MCOMPILER-399</a> – Upgrade mockito to latest 2.x</li>
|
| </ul>
|
| </li>
|
| </ul>
|
|
|
|
|
| <p>Enjoy,</p>
|
|
|
| <ul>
|
| <li>The Apache Maven team</li>
|
| </ul>
|
|
|
| </div> |