[ https://issues.apache.org/jira/browse/MPOM-449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17796488#comment-17796488 ]
Slawomir Jaranowski commented on MPOM-449: ------------------------------------------ We can simply use {{8}} also for JDK 1.8 > Remove the leading "1." from source/target properties > ----------------------------------------------------- > > Key: MPOM-449 > URL: https://issues.apache.org/jira/browse/MPOM-449 > Project: Maven POMs > Issue Type: Bug > Components: maven > Affects Versions: MAVEN-41 > Reporter: Tamas Cservenak > Priority: Major > Fix For: MAVEN-42 > > > The parent 41 has these lines: > {noformat} > <maven.compiler.source>1.${javaVersion}</maven.compiler.source> > <maven.compiler.target>1.${javaVersion}</maven.compiler.target> {noformat} > This makes any Java above 9 defunct (and we do not go below 8, so it works > for only two versions). If you try to use 11, 17 or oh my god 21, you end up > with "1.11", "1.17" and "1.21" subsequently. While for javac this is not a > biggie (it will ignore this if release set, and hopefully is), but > reporting/site/whatever craps out badly on this. > Remove the prefix "1.", and let those on 8 use 1.8 instead. -- This message was sent by Atlassian Jira (v8.20.10#820010)