You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@apache.org> on 2018/03/20 22:40:01 UTC
[jira] [Updated] (MCOMPILER-331) Defining maven.compiler.release
prevents compilation with Java 8
[ https://issues.apache.org/jira/browse/MCOMPILER-331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte updated MCOMPILER-331:
-------------------------------------
Issue Type: Wish (was: Bug)
> Defining maven.compiler.release prevents compilation with Java 8
> ----------------------------------------------------------------
>
> Key: MCOMPILER-331
> URL: https://issues.apache.org/jira/browse/MCOMPILER-331
> Project: Maven Compiler Plugin
> Issue Type: Wish
> Affects Versions: 3.7.0
> Reporter: mike duigou
> Priority: Major
>
> I am in the process of transitioning projects to be compatible with building on Java 9 and later. One of the steps is to supplement and eventually replace the properties we are using for source and target:
> {{<maven.compiler.source>8</maven.compiler.source>}}
> {{<maven.compiler.target>8</maven.compiler.target>}}
> with:
> {{<maven.compiler.release>8</maven.compiler.release>}}
> However, adding the additional property prevents compilation on Java 8 as it does not accept the --release option
> If the javac being used is Java 8 or older then the maven.compiler.release property should be ignored or translated in to -source 8 -target 8. This will make the transition from source/target to release easier.--
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)