Skip to content

Commit b094195

Browse files
[MNG-8169] Add opens java.base/java.lang=ALL-UNNAMED for MinGW
1 parent 488b61c commit b094195

File tree

1 file changed

+4
-0
lines changed
  • apache-maven/src/bin

1 file changed

+4
-0
lines changed

apache-maven/src/bin/mvn

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@ export MAVEN_CMD_LINE_ARGS
199199
# MNG-8248
200200
if "$JAVACMD" --enable-native-access=ALL-UNNAMED -version >/dev/null 2>&1; then
201201
MAVEN_OPTS="--enable-native-access=ALL-UNNAMED $MAVEN_OPTS"
202+
# MNG-8169
203+
if $mingw ; then
204+
MAVEN_OPTS="--add-opens java.base/java.lang=ALL-UNNAMED $MAVEN_OPTS"
205+
fi
202206
fi
203207

204208
exec "$JAVACMD" \

0 commit comments

Comments
 (0)