[ http://jira.codehaus.org/browse/MNG-1273?page=comments#action_54366 ]
Stephen B. Hahn commented on MNG-1273: -------------------------------------- This is a known bug in Windows 2000 and XP. It has been fixed in XP SP2. I have successfully modified mvn.bat as follows: if "%OS%"=="Windows_NT" for %%i in (%~sf0) do SET M2_HOME=%%~dspi.. A full discription of the bug can be found at: http://groups.google.com/group/alt.msdos.batch.nt/msg/32a14ae26b10e5cf?hl=en&lr=&ie=UTF-8 Hope this helps. > Current installation instructions for Windows do not mention M2_HOME. It is > required and cannot have spaces. > ------------------------------------------------------------------------------------------------------------- > > Key: MNG-1273 > URL: http://jira.codehaus.org/browse/MNG-1273 > Project: Maven 2 > Type: Bug > Components: documentation - general > Versions: 2.0 > Environment: Windows > Reporter: Richard Bondi > Priority: Minor > Fix For: 2.0.3 > > > Two issues: > 1. The installation instructions for Windows make no mention of the need to > set M2_HOME. But if you try to run "mvn --version" after following the > instructions, you are prompted to set this environment variable. > 2. At least on Windows 2K, M2_HOME will not work if it contains spaces. One > workaround is to use the "short" 8.3 version of all directory names. (To see > the short version of directory names, do "dir /A:D /X" in a DOS window.) -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
