You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2005/06/06 13:51:21 UTC

[jira] Closed: (MNG-86) m2-bootstrap-all.bat fails if ${maven.home} contains spaces

     [ http://jira.codehaus.org/browse/MNG-86?page=all ]
     
Brett Porter closed MNG-86:
---------------------------

    Resolution: Fixed

not a dupe of MNG-372 (it pertains to the bootstrap bats, while the other looked at the shells and m2.bat). However I've tested this and it works. For consistency, passed %MAVEN_OPTS% through to the core IT

> m2-bootstrap-all.bat fails if ${maven.home} contains spaces
> -----------------------------------------------------------
>
>          Key: MNG-86
>          URL: http://jira.codehaus.org/browse/MNG-86
>      Project: Maven 2
>         Type: Bug
>  Environment: Windows XP SP2, JDK 1.4.2_05
>     Reporter: Magne Rasmussen
>     Priority: Trivial
>  Attachments: MNG-86.patch
>
>
> m2-bootstrap-all.bat (CVS rev. 1.4) fails on line 114 if M2_HOME=%USERPROFILE%/m2 (expands to 'C:\Documents and Settings\User/m2'). This can be fixed by replacing line 104 with:
> SET MAVEN_CMD_LINE_ARGS=%MAVEN_CMD_LINE_ARGS% -Dmaven.home="%M2_HOME%"
> The same error manifests itself in maven-core-it/maven-core-it.bat, where line 23 can be replaced with:
> %JAVA_HOME%\bin\java.exe %* -Dmaven.home="%M2_HOME%" -cp "..\maven-core-it-verifier\target\maven-core-it-verifier-1.0.jar" org.apache.maven.it.Verifier
> as a fix.
> There will be a lot of errors if M2_HOME is set like 'SET M2_HOME="C:\Documents and Settings\User\m2"' (notice double qoutes around the path). These qoutes should probably be stripped before trying to use M2_HOME in any script. Or a suitable warning could be put in the docs :-)

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org