Skip to content

Commit 930a32f

Browse files
authored
Merge pull request #441 from nodeg/update_maven
2 parents ef31a1d + 8f8d4d6 commit 930a32f

112 files changed

Lines changed: 870 additions & 564 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

lib/template/bundled/apache-maven-3.9.12/LICENSE

Lines changed: 616 additions & 0 deletions
Large diffs are not rendered by default.

lib/template/bundled/apache-maven-3.9.9/NOTICE renamed to lib/template/bundled/apache-maven-3.9.12/NOTICE

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
Apache Maven Distribution
2-
Copyright 2001-2024 The Apache Software Foundation
3-
4-
5-
This product includes software developed at
6-
The Apache Software Foundation (http://www.apache.org/).
71
This software bundles the following NOTICE files from third party library providers:
82

93
META-INF/NOTICE in archive lib/guice-5.1.0.jar
File renamed without changes.
File renamed without changes.

lib/template/bundled/apache-maven-3.9.9/bin/mvn renamed to lib/template/bundled/apache-maven-3.9.12/bin/mvn

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,15 @@ export MAVEN_PROJECTBASEDIR
196196
MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
197197
export MAVEN_CMD_LINE_ARGS
198198

199+
# MNG-8248
200+
if "$JAVACMD" --enable-native-access=ALL-UNNAMED -version >/dev/null 2>&1; then
201+
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
206+
fi
207+
199208
exec "$JAVACMD" \
200209
$MAVEN_OPTS \
201210
$MAVEN_DEBUG_OPTS \

lib/template/bundled/apache-maven-3.9.9/bin/mvn.cmd renamed to lib/template/bundled/apache-maven-3.9.12/bin/mvn.cmd

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
3434
@if "%MAVEN_BATCH_ECHO%"=="on" echo %MAVEN_BATCH_ECHO%
3535

36+
@REM Clear/define a variable for any options to be inserted via script
37+
@REM We want to avoid trying to parse the external MAVEN_OPTS variable
38+
SET INTERNAL_MAVEN_OPTS=
39+
3640
@REM Execute a user defined script before this one
3741
if not "%MAVEN_SKIP_RC%"=="" goto skipRcPre
3842
@REM check for pre script, once with legacy .bat ending and once with .cmd ending
@@ -166,11 +170,21 @@ for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do s
166170

167171
:endReadAdditionalConfig
168172

173+
@REM do not let MAVEN_PROJECTBASEDIR end with a single backslash which would escape the double quote. This happens when .mvn at drive root.
174+
if "_%MAVEN_PROJECTBASEDIR:~-1%"=="_\" set "MAVEN_PROJECTBASEDIR=%MAVEN_PROJECTBASEDIR%\"
175+
169176
for %%i in ("%MAVEN_HOME%"\boot\plexus-classworlds-*) do set CLASSWORLDS_JAR="%%i"
170177
set CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
171178

179+
@REM MNG-8248
180+
"%JAVACMD%" --enable-native-access=ALL-UNNAMED -version >nul 2>&1
181+
if ERRORLEVEL 1 goto skipEnableNativeAccess
182+
set "INTERNAL_MAVEN_OPTS=--enable-native-access=ALL-UNNAMED %INTERNAL_MAVEN_OPTS%"
183+
:skipEnableNativeAccess
184+
172185
"%JAVACMD%" ^
173186
%JVM_CONFIG_MAVEN_PROPS% ^
187+
%INTERNAL_MAVEN_OPTS% ^
174188
%MAVEN_OPTS% ^
175189
%MAVEN_DEBUG_OPTS% ^
176190
-classpath %CLASSWORLDS_JAR% ^
File renamed without changes.

lib/template/bundled/apache-maven-3.9.9/bin/mvnDebug.cmd renamed to lib/template/bundled/apache-maven-3.9.12/bin/mvnDebug.cmd

File renamed without changes.
File renamed without changes.

lib/template/bundled/apache-maven-3.9.9/boot/plexus-classworlds-2.8.0.jar renamed to lib/template/bundled/apache-maven-3.9.12/boot/plexus-classworlds-2.9.0.jar

52.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)