[
https://issues.apache.org/jira/browse/MCOMPILER-477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17486416#comment-17486416
]
Thorsten Glaser commented on MCOMPILER-477:
-------------------------------------------
Hmm, no, but:
{{
<maven.compiler.release>${javaRelease}</maven.compiler.release>}}
Would that do it?
I’d have expected the plugin to only pass options known for a certain version
to tools of that version. I’ll try reshuffling that…
Setup is the same as in the other ticket:
[https://github.com/tarent/maven-parent] commit
01e7a681ad6f3b90f08eb436fe9dd4ad3a391f0a with [line 152 (not 154 here) in
{{parent/pom.xml}}|https://github.com/tarent/maven-parent/blob/01e7a681ad6f3b90f08eb436fe9dd4ad3a391f0a/parent/pom.xml#L152]
commented out
> maven-compiler-plugin > 3.5.1 fail on JDK 8
> -------------------------------------------
>
> Key: MCOMPILER-477
> URL: https://issues.apache.org/jira/browse/MCOMPILER-477
> Project: Maven Compiler Plugin
> Issue Type: Bug
> Affects Versions: 3.8.1
> Reporter: Thorsten Glaser
> Priority: Major
> Labels: need-more-info
> Fix For: waiting-for-feedback
>
>
> Trying to use 3.8.1 (or select older versions) with JDK 8 result in
> {{--release}} being passed to {{{}javac{}}}, which does not like that.
> {quote}{{[ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile
> (default-compile) on project maven-parent-lib: Fatal error compiling: invalid
> flag: --release -> [Help 1]}}
> {quote}
> Might be related to https://issues.apache.org/jira/browse/MJAVADOC-703 which
> is pretty much the same but for the maven-javadoc-plugin starting past a
> certain version. I tested them independently of each other, though.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)