You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2025/05/05 20:49:20 UTC

(maven) branch maven-3.9.x updated: [MNG-8169] Add opens java.base/java.lang=ALL-UNNAMED for MinGW

This is an automated email from the ASF dual-hosted git repository.

sjaranowski pushed a commit to branch maven-3.9.x
in repository https://gitbox.apache.org/repos/asf/maven.git


The following commit(s) were added to refs/heads/maven-3.9.x by this push:
     new b09419540e [MNG-8169] Add opens java.base/java.lang=ALL-UNNAMED for MinGW
b09419540e is described below

commit b09419540eb26fcf791a8a262855d45f8f5a0db5
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Sat May 3 23:46:54 2025 +0200

    [MNG-8169] Add opens java.base/java.lang=ALL-UNNAMED for MinGW
---
 apache-maven/src/bin/mvn | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/apache-maven/src/bin/mvn b/apache-maven/src/bin/mvn
index 954af15e00..47dc7d7f4e 100755
--- a/apache-maven/src/bin/mvn
+++ b/apache-maven/src/bin/mvn
@@ -199,6 +199,10 @@ export MAVEN_CMD_LINE_ARGS
 # MNG-8248
 if "$JAVACMD" --enable-native-access=ALL-UNNAMED -version >/dev/null 2>&1; then
   MAVEN_OPTS="--enable-native-access=ALL-UNNAMED $MAVEN_OPTS"
+  # MNG-8169
+  if $mingw ; then
+    MAVEN_OPTS="--add-opens java.base/java.lang=ALL-UNNAMED $MAVEN_OPTS"
+  fi
 fi
 
 exec "$JAVACMD" \