From 42ac09e0216c0dd9516baa98f6ac6aa303d56707 Mon Sep 17 00:00:00 2001 From: Antoine Mottier Date: Tue, 14 Nov 2023 09:30:21 +0100 Subject: [PATCH] Fix the JDK version range for jdk9 profile The version range was: `[9,11[` was leading to activation of `jdk9` profile when running on Java 11. This can be confirmed by running: `mvn help:active-profiles`. Actually `[9,11[` is not a valid range definition according to https://maven.apache.org/ref/3.9.5/maven-artifact/apidocs/org/apache/maven/artifact/versioning/VersionRange.html#createFromVersionSpec(java.lang.String) This change update the definition of version range to `[9,11)` that actually exclude Java 11 (`jdk11` will be activated in such situation). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 6e6302e0..18055849 100644 --- a/pom.xml +++ b/pom.xml @@ -461,7 +461,7 @@ jdk9 - [9,11[ + [9,11) --illegal-access=permit --add-reads java.base=java.logging