This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-apache-parent.git
The following commit(s) were added to refs/heads/master by this push:
new 2d0578a Switch JDK >= 9 to only use maven.compiler.release (#543)
2d0578a is described below
commit 2d0578a5e4379846fc27523041b97cb34a6c8578
Author: Guillaume Nodet <[email protected]>
AuthorDate: Thu Nov 13 08:58:36 2025 +0100
Switch JDK >= 9 to only use maven.compiler.release (#543)
The pom does not define maven.compiler.source and maven.compiler.target
anymore.
This may be breaking some projects in some cases and may require projects
to set `maven.compiler.source` explicitly.
---
pom.xml | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 9dc5059..436092d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -514,6 +514,17 @@ under the License.
</build>
</profile>
<!-- END SNIPPET: release-profile -->
+ <profile>
+ <id>jdk8</id>
+ <activation>
+ <jdk>[,9)</jdk>
+ </activation>
+ <properties>
+ <maven.compiler.source>${maven.compiler.target}</maven.compiler.source>
+ <maven.compiler.target>8</maven.compiler.target>
+
<minimalJavaBuildVersion>${maven.compiler.target}</minimalJavaBuildVersion>
+ </properties>
+ </profile>
<profile>
<id>jdk9+</id>
<activation>
@@ -522,7 +533,8 @@ under the License.
</activation>
<properties>
<!--
https://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-release.html,
affects m-compiler-p and m-javadoc-p -->
-
<maven.compiler.release>${maven.compiler.target}</maven.compiler.release>
+ <maven.compiler.release>8</maven.compiler.release>
+
<minimalJavaBuildVersion>${maven.compiler.release}</minimalJavaBuildVersion>
</properties>
</profile>
<profile>