[MNG-7621] Parameter '-f' causes ignoring any 'maven.config' (only on Windows)

This closes #905
This commit is contained in:
Michael Osipov 2022-12-08 15:21:40 +01:00
parent 4e38415b67
commit 828de7e1a8
1 changed files with 2 additions and 1 deletions

View File

@ -64,8 +64,9 @@ exit /b
:findBaseDir
cd /d "%WDIR%"
set "WDIR=%CD%"
:findBaseDirLoop
if exist "%WDIR%\.mvn" goto baseDirFound
if exist ".mvn" goto baseDirFound
cd ..
IF "%WDIR%"=="%CD%" goto baseDirNotFound
set "WDIR=%CD%"