From 9811df363bf1a47d6864fcefaa65237501166441 Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Wed, 18 Sep 2024 14:00:33 +0200 Subject: [PATCH] [MNG-8260] Fix warning on latest JDK 24.ea (#1718) --- 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 28814a8178..4ecc6e5819 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 75de39aecd..69b6c3b4f4 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%" ^