[ https://issues.apache.org/jira/browse/MCOMPILER-331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte closed MCOMPILER-331. ------------------------------------ Resolution: Won't Fix Assignee: Robert Scholte This is intended behavior, see the comments of MCOMPILER-270 for all the details. > 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 > Assignee: Robert Scholte > 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)