You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2025/02/08 12:55:00 UTC
[jira] [Commented] (MCOMPILER-529) Improve the docs about usage 1.8 vs. 8 for source/target
[ https://issues.apache.org/jira/browse/MCOMPILER-529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17925253#comment-17925253 ]
ASF GitHub Bot commented on MCOMPILER-529:
------------------------------------------
Bukama commented on PR #245:
URL: https://github.com/apache/maven-compiler-plugin/pull/245#issuecomment-2645480924
Sorry, totally missed the notification about your comment :/
> It's possible to set .release property not only for Java 9+ but also do or Java 8. Plugin will skip passing this parameter to compiler for Java 8
As this information is already written in the example of the release property, I added a link at the start of the page (similar to [M3 and M4 guides about multi module / multi subproject](https://maven.apache.org/guides/mini/guide-multiple-subprojects-4.html)) to use this property if plugin version is 3.13.0 or higher (this version is noticed on the release property page), as it's the preferred option anyway nowadays.
We can also think about (in a separate issues/PR) to merge both examples / "remove" from the menu to point users more directly to using the release property.
> Improve the docs about usage 1.8 vs. 8 for source/target
> --------------------------------------------------------
>
> Key: MCOMPILER-529
> URL: https://issues.apache.org/jira/browse/MCOMPILER-529
> Project: Maven Compiler Plugin
> Issue Type: Improvement
> Affects Versions: 3.10.1
> Reporter: Karl Heinz Marbaise
> Priority: Minor
> Labels: up-for-grabs
>
> The current descriptions/docs only mentioned the usage of {{1.8}} for source/target. But it looks like I can use also {{8}} instead. But all the examples on the usage page etc. using {{1.8}}... even the error message tells me to do:
> {{code}}
> use -source 8 ...
> {{code}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)