You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "jira-importer (via GitHub)" <gi...@apache.org> on 2025/03/06 09:33:59 UTC
[I] [MPOM-449] Remove the leading "1." from source/target properties [maven-parent]
jira-importer opened a new issue, #315:
URL: https://github.com/apache/maven-parent/issues/315
**[Tamas Cservenak](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=cstamas)** opened **[MPOM-449](https://issues.apache.org/jira/browse/MPOM-449?redirect=false)** and commented
The parent 41 has these lines:
```
<maven.compiler.source>1.${javaVersion}</maven.compiler.source>
<maven.compiler.target>1.${javaVersion}</maven.compiler.target>
```
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.
---
**Affects:** MAVEN-41
**Issue Links:**
- [MARCHETYPES-81](https://issues.apache.org/jira/browse/MARCHETYPES-81) generate maven.compiler.target 8 instead of 1.8
**Remote Links:**
- [GitHub Pull Request #155
](https://github.com/apache/maven-parent/pull/155)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [MPOM-449] Remove the leading "1." from source/target properties [maven-parent]
Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #315:
URL: https://github.com/apache/maven-parent/issues/315#issuecomment-2703300545
**[Slawomir Jaranowski](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=slawekjaranowski)** commented
We can simply use `8` also for JDK 1.8
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [MPOM-449] Remove the leading "1." from source/target properties [maven-parent]
Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #315:
URL: https://github.com/apache/maven-parent/issues/315#issuecomment-2703300555
**[Herve Boutemy](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=hboutemy)** commented
I tested with older maven-compiler-plugin up to 2.1 and it worked
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [MPOM-449] Remove the leading "1." from source/target properties [maven-parent]
Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #315:
URL: https://github.com/apache/maven-parent/issues/315#issuecomment-2703300550
**[Herve Boutemy](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=hboutemy)** commented
very good idea: this is supported by JDK javac since Java 5, we can forget about this "1." that was necessary only until Java 1.4...
https://docs.oracle.com/javase/6/docs/technotes/tools/solaris/javac.html
just for reference, key support is at JDK javac level, but I don't know if very old maven-compiler-plugin versions were checking source/target config format against that "1.x" from early time and would fail before even passing the value to javac. Clearly, short format is ok in maven-compiler-plugin for a long time, ideally, I'll test and share
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org