From 5a5abd436102c1fc8d89ef09ea829739cea310d5 Mon Sep 17 00:00:00 2001 From: Diego Alonso Marquez Palacios Date: Thu, 21 Nov 2024 20:38:01 -0500 Subject: [PATCH] use add-opens in surefire only when running in jdk9+ --- pom.xml | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index 377e9b31a..3f3a87609 100644 --- a/pom.xml +++ b/pom.xml @@ -220,15 +220,6 @@ - - org.apache.maven.plugins - maven-surefire-plugin - - - --add-opens java.base/java.time=ALL-UNNAMED - - @@ -308,4 +299,25 @@ + + + java9 + + [9,) + + + + + org.apache.maven.plugins + maven-surefire-plugin + + + --add-opens java.base/java.time=ALL-UNNAMED + + + + + +