| --- |
| layout: post |
| title: Apache Maven Compiler Plugin, version 3.8.1 |
| date: '2019-05-02T20:57:08+00:00' |
| permalink: apache-maven-compiler-plugin-version1 |
| --- |
| <div class="entry-content"><p>The Apache Maven team is pleased to announce the release of the
|
| <a href="http://maven.apache.org/plugins/maven-compiler-plugin/">Apache Maven Compiler Plugin, version 3.8.1</a>.</p>
|
|
|
| <p>The Compiler Plugin is used to compile the sources of your project.</p>
|
|
|
| <p>Important Notes since Version 3.8.1</p>
|
|
|
| <ul>
|
| <li>The default value for source/target has been lifted
|
| from 1.5 to 1.6 see <a href="https://issues.apache.org/jira/browse/MCOMPILER-335">MCOMPILER-335</a>.</li>
|
| </ul>
|
|
|
|
|
| <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.8.1<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=12343484">Release Notes – Maven Compiler Plugin – Version 3.8.1</a></p>
|
|
|
| <p>Bugs:</p>
|
|
|
| <ul>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-306">MCOMPILER-306</a> – Incorrect <code>compilerArgs</code> example usage</li>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-349">MCOMPILER-349</a> – maven-compiler-plugin does not recompile a module if a dependency module has been updated & recompiled</li>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-360">MCOMPILER-360</a> – NPE when calculating modulepath with invalid entries</li>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-379">MCOMPILER-379</a> – Fatal error compiling: basedir … arget/generated-sources/annotations does not exist</li>
|
| </ul>
|
|
|
|
|
| <p>Improvements:</p>
|
|
|
| <ul>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-322">MCOMPILER-322</a> – Set the JPMS module version</li>
|
| <li><a href="https://issues.apache.org/jira/browse/MCOMPILER-366">MCOMPILER-366</a> – Warning about automodules should provide the list of offending libraries</li>
|
| </ul>
|
|
|
|
|
| <p>Enjoy,</p>
|
|
|
| <ul>
|
| <li>The Apache Maven team</li>
|
| </ul>
|
|
|
| </div> |