From b268754750f52c1567e4c442f7037bb1237f2023 Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Wed, 11 Sep 2024 11:02:42 +0200 Subject: [PATCH] Fix warning on latest JDK 24.ea --- apache-maven/src/assembly/shared/run | 1 + apache-maven/src/assembly/shared/run.cmd | 1 + 2 files changed, 2 insertions(+) diff --git a/apache-maven/src/assembly/shared/run b/apache-maven/src/assembly/shared/run index 28814a81786f..4ecc6e5819ec 100755 --- a/apache-maven/src/assembly/shared/run +++ b/apache-maven/src/assembly/shared/run @@ -11,6 +11,7 @@ fi exec "$JAVACMD" \ $MAVEN_OPTS \ $MAVEN_DEBUG_OPTS \ + --enable-native-access=ALL-UNNAMED \ -classpath "$LAUNCHER_JAR" \ "-Dclassworlds.conf=$CLASSWORLDS_CONF" \ "-Dmaven.home=$MAVEN_HOME" \ diff --git a/apache-maven/src/assembly/shared/run.cmd b/apache-maven/src/assembly/shared/run.cmd index 75de39aecd4f..69b6c3b4f4ea 100755 --- a/apache-maven/src/assembly/shared/run.cmd +++ b/apache-maven/src/assembly/shared/run.cmd @@ -1,6 +1,7 @@ "%JAVACMD%" ^ %MAVEN_OPTS% ^ %MAVEN_DEBUG_OPTS% ^ + --enable-native-access=ALL-UNNAMED ^ -classpath %LAUNCHER_JAR% ^ "-Dclassworlds.conf=%CLASSWORLDS_CONF%" ^ "-Dmaven.home=%MAVEN_HOME%" ^