Bernd Eckenfels created MNG-5804:
------------------------------------

             Summary: mvn.bat does not work in root directory on Windows
                 Key: MNG-5804
                 URL: https://issues.apache.org/jira/browse/MNG-5804
             Project: Maven
          Issue Type: Bug
          Components: Command Line
    Affects Versions: 3.3.1
         Environment: Win7 x64 german
            Reporter: Bernd Eckenfels
            Priority: Minor


On Windows the new mvn.bat script does not work if the current working 
directory is the root dir of a drive. In that case it will initialize  
%MAVEN_PROJECTBASEDIR% with a tryiling \ and that will break the java command 
line as it escapes the following quote of 
"-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%"

It works on 3.2.1 and fails with 3.3.1:

{code}
c:\>c:\devenv\apache-maven-3.2.1\bin\mvn --version
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 
2014-02-14T18:37:52+01:00)
Maven home: c:\devenv\apache-maven-3.2.1\bin\..
...
c:\>c:\devenv\apache-maven-3.3.1\bin\mvn --version
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option 
...
{code}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to