mike duigou created MCOMPILER-331: ------------------------------------- Summary: 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: Bug Affects Versions: 3.7.0 Reporter: mike duigou
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)