You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2022/12/16 22:00:28 UTC

[maven] branch maven-3.9.x updated: [MNG-7621] Parameter '-f' causes ignoring any 'maven.config' (only on Windows)

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

michaelo 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 3492f3ae9 [MNG-7621] Parameter '-f' causes ignoring any 'maven.config' (only on Windows)
3492f3ae9 is described below

commit 3492f3ae997ef949d926201fc864c4a207fc7659
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Thu Dec 8 15:21:40 2022 +0100

    [MNG-7621] Parameter '-f' causes ignoring any 'maven.config' (only on Windows)
    
    This closes #905
---
 apache-maven/src/bin/mvn.cmd | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/apache-maven/src/bin/mvn.cmd b/apache-maven/src/bin/mvn.cmd
index b14b9c124..3d2512b2d 100644
--- a/apache-maven/src/bin/mvn.cmd
+++ b/apache-maven/src/bin/mvn.cmd
@@ -137,8 +137,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%"