You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "John Casey (JIRA)" <ji...@codehaus.org> on 2008/02/06 20:28:28 UTC

[jira] Closed: (MNG-2178) incorrect M2_HOME guess in mvn.bat

     [ http://jira.codehaus.org/browse/MNG-2178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey closed MNG-2178.
---------------------------

    Resolution: Fixed

I can't actually test this fix, so if someone finds that it's still not working, reopen this.

> incorrect M2_HOME guess in mvn.bat
> ----------------------------------
>
>                 Key: MNG-2178
>                 URL: http://jira.codehaus.org/browse/MNG-2178
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Bootstrap & Build
>    Affects Versions: 2.0.2
>         Environment: WXP
>            Reporter: Jörg Henne
>            Assignee: John Casey
>             Fix For: 2.0.9, 2.1-alpha-1
>
>
> mvn.bat contains the following lines:
> :chkMHome
> if not "%M2_HOME%"=="" goto valMHome
> if "%OS%"=="Windows_NT" SET M2_HOME=%~dps0\..
> if not "%M2_HOME%"=="" goto valMHome
> Guessing M2_HOME=%~dps0\.. leads to complaints later on, since the script expects m2.bat in bin/...:
> if exist "%M2_HOME%\bin\m2.bat" goto init
> Hence, the line should read:
> if "%OS%"=="Windows_NT" SET M2_HOME=%~dps0\..\..

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira