[MNG-8315] Fix MAVEN_PROJECTBASEDIR in mvn.cmd when .mvn is at drive root
Some checks failed
Early Access / Default build (without GraalVM) (push) Has been cancelled
Early Access / Build with GraalVM on ${{ matrix.os }} (macos-13) (push) Has been cancelled
Early Access / Build with GraalVM on ${{ matrix.os }} (macos-latest) (push) Has been cancelled
Early Access / Build with GraalVM on ${{ matrix.os }} (ubuntu-latest) (push) Has been cancelled
Early Access / Build with GraalVM on ${{ matrix.os }} (windows-latest) (push) Has been cancelled
Early Access / Site build (push) Has been cancelled

This commit is contained in:
Slawomir Jaranowski
2025-06-10 23:39:36 +02:00
parent 08929bafab
commit bdb4fcd7a3

View File

@@ -189,6 +189,9 @@ for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do s
:endReadAdditionalConfig
@REM do not let MAVEN_PROJECTBASEDIR end with a single backslash which would escape the double quote. This happens when .mvn at drive root.
if "_%MAVEN_PROJECTBASEDIR:~-1%"=="_\" set "MAVEN_PROJECTBASEDIR=%MAVEN_PROJECTBASEDIR%\"
for %%i in ("%MVND_HOME%"\mvn\boot\plexus-classworlds-*) do set CLASSWORLDS_JAR="%%i"
set CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher