You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "ajbanck (JIRA)" <ji...@codehaus.org> on 2005/10/25 11:23:11 UTC

[jira] Created: (MNG-1318) mvn.bat sets incorrect value to M2_HOME [Windows 2000]

mvn.bat sets incorrect value to M2_HOME [Windows 2000]
------------------------------------------------------

         Key: MNG-1318
         URL: http://jira.codehaus.org/browse/MNG-1318
     Project: Maven 2
        Type: Bug
  Components: maven-core  
    Versions: 2.0    
 Environment: Windows 2000 SP4 / Maven 2.0
 Reporter: ajbanck


When running Maven 2 by calling mvn.bat on Windows 2000 (SP4) the batch file sets M2_HOME to a value including the name of the batch file itself.
This results in an error:

ERROR: M2_HOME is set to an invalid directory.
M2_HOME = C:\maven\maven-2.0\bin\mvn.bat\..
Please set the M2_HOME variable in your environment to match the location of the Maven installation

When changing line 72 of mvn.bat to use %~dp0 instead of %~dps0 it works correctly:
if "%OS%"=="Windows_NT" SET M2_HOME=%~dp0\..


Looking at the SVN history, this was changed to %~dps0 to work with spaces 
http://svn.apache.org/viewcvs.cgi?rev=163778&view=rev

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


[jira] Updated: (MNG-1318) mvn.bat sets incorrect value to M2_HOME [Windows 2000]

Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1318?page=all ]

Jason van Zyl updated MNG-1318:
-------------------------------

    Fix Version:     (was: 2.1.1)
                 2.0.4

> mvn.bat sets incorrect value to M2_HOME [Windows 2000]
> ------------------------------------------------------
>
>          Key: MNG-1318
>          URL: http://jira.codehaus.org/browse/MNG-1318
>      Project: Maven 2
>         Type: Bug

>   Components: Command Line
>     Versions: 2.0
>  Environment: Windows 2000 SP4 / Maven 2.0
>     Reporter: ajbanck
>      Fix For: 2.0.4

>
>
> When running Maven 2 by calling mvn.bat on Windows 2000 (SP4) the batch file sets M2_HOME to a value including the name of the batch file itself.
> This results in an error:
> ERROR: M2_HOME is set to an invalid directory.
> M2_HOME = C:\maven\maven-2.0\bin\mvn.bat\..
> Please set the M2_HOME variable in your environment to match the location of the Maven installation
> When changing line 72 of mvn.bat to use %~dp0 instead of %~dps0 it works correctly:
> if "%OS%"=="Windows_NT" SET M2_HOME=%~dp0\..
> Looking at the SVN history, this was changed to %~dps0 to work with spaces 
> http://svn.apache.org/viewcvs.cgi?rev=163778&view=rev

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


[jira] Commented: (MNG-1318) mvn.bat sets incorrect value to M2_HOME [Windows 2000]

Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1318?page=comments#action_59989 ] 

Kenney Westerhof commented on MNG-1318:
---------------------------------------

Sorry, I messed up 1317 and 1318. This issue is fixed in revision 382801.

> mvn.bat sets incorrect value to M2_HOME [Windows 2000]
> ------------------------------------------------------
>
>          Key: MNG-1318
>          URL: http://jira.codehaus.org/browse/MNG-1318
>      Project: Maven 2
>         Type: Bug

>   Components: Command Line
>     Versions: 2.0
>  Environment: Windows 2000 SP4 / Maven 2.0
>     Reporter: ajbanck
>     Assignee: Kenney Westerhof
>      Fix For: 2.0.3

>
>
> When running Maven 2 by calling mvn.bat on Windows 2000 (SP4) the batch file sets M2_HOME to a value including the name of the batch file itself.
> This results in an error:
> ERROR: M2_HOME is set to an invalid directory.
> M2_HOME = C:\maven\maven-2.0\bin\mvn.bat\..
> Please set the M2_HOME variable in your environment to match the location of the Maven installation
> When changing line 72 of mvn.bat to use %~dp0 instead of %~dps0 it works correctly:
> if "%OS%"=="Windows_NT" SET M2_HOME=%~dp0\..
> Looking at the SVN history, this was changed to %~dps0 to work with spaces 
> http://svn.apache.org/viewcvs.cgi?rev=163778&view=rev

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


[jira] Updated: (MNG-1318) mvn.bat sets incorrect value to M2_HOME [Windows 2000]

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1318?page=all ]

John Casey updated MNG-1318:
----------------------------

    Fix Version:     (was: 2.0.1)
                 2.0.2

> mvn.bat sets incorrect value to M2_HOME [Windows 2000]
> ------------------------------------------------------
>
>          Key: MNG-1318
>          URL: http://jira.codehaus.org/browse/MNG-1318
>      Project: Maven 2
>         Type: Bug
>   Components: Plugins and Lifecycle
>     Versions: 2.0
>  Environment: Windows 2000 SP4 / Maven 2.0
>     Reporter: ajbanck
>      Fix For: 2.0.2

>
>
> When running Maven 2 by calling mvn.bat on Windows 2000 (SP4) the batch file sets M2_HOME to a value including the name of the batch file itself.
> This results in an error:
> ERROR: M2_HOME is set to an invalid directory.
> M2_HOME = C:\maven\maven-2.0\bin\mvn.bat\..
> Please set the M2_HOME variable in your environment to match the location of the Maven installation
> When changing line 72 of mvn.bat to use %~dp0 instead of %~dps0 it works correctly:
> if "%OS%"=="Windows_NT" SET M2_HOME=%~dp0\..
> Looking at the SVN history, this was changed to %~dps0 to work with spaces 
> http://svn.apache.org/viewcvs.cgi?rev=163778&view=rev

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


[jira] Updated: (MNG-1318) mvn.bat sets incorrect value to M2_HOME [Windows 2000]

Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1318?page=all ]

Jason van Zyl updated MNG-1318:
-------------------------------

    Component:     (was: Plugins and Lifecycle)
               Command Line

> mvn.bat sets incorrect value to M2_HOME [Windows 2000]
> ------------------------------------------------------
>
>          Key: MNG-1318
>          URL: http://jira.codehaus.org/browse/MNG-1318
>      Project: Maven 2
>         Type: Bug

>   Components: Command Line
>     Versions: 2.0
>  Environment: Windows 2000 SP4 / Maven 2.0
>     Reporter: ajbanck
>      Fix For: 2.0.3

>
>
> When running Maven 2 by calling mvn.bat on Windows 2000 (SP4) the batch file sets M2_HOME to a value including the name of the batch file itself.
> This results in an error:
> ERROR: M2_HOME is set to an invalid directory.
> M2_HOME = C:\maven\maven-2.0\bin\mvn.bat\..
> Please set the M2_HOME variable in your environment to match the location of the Maven installation
> When changing line 72 of mvn.bat to use %~dp0 instead of %~dps0 it works correctly:
> if "%OS%"=="Windows_NT" SET M2_HOME=%~dp0\..
> Looking at the SVN history, this was changed to %~dps0 to work with spaces 
> http://svn.apache.org/viewcvs.cgi?rev=163778&view=rev

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


[jira] Closed: (MNG-1318) mvn.bat sets incorrect value to M2_HOME [Windows 2000]

Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1318?page=all ]
     
Kenney Westerhof closed MNG-1318:
---------------------------------

      Assign To: Kenney Westerhof
     Resolution: Fixed
    Fix Version:     (was: 2.0.4)
                 2.0.3

Fixed in svn revision 382797.

Changed the fix/version to 2.0.3 as discussed.

> mvn.bat sets incorrect value to M2_HOME [Windows 2000]
> ------------------------------------------------------
>
>          Key: MNG-1318
>          URL: http://jira.codehaus.org/browse/MNG-1318
>      Project: Maven 2
>         Type: Bug

>   Components: Command Line
>     Versions: 2.0
>  Environment: Windows 2000 SP4 / Maven 2.0
>     Reporter: ajbanck
>     Assignee: Kenney Westerhof
>      Fix For: 2.0.3

>
>
> When running Maven 2 by calling mvn.bat on Windows 2000 (SP4) the batch file sets M2_HOME to a value including the name of the batch file itself.
> This results in an error:
> ERROR: M2_HOME is set to an invalid directory.
> M2_HOME = C:\maven\maven-2.0\bin\mvn.bat\..
> Please set the M2_HOME variable in your environment to match the location of the Maven installation
> When changing line 72 of mvn.bat to use %~dp0 instead of %~dps0 it works correctly:
> if "%OS%"=="Windows_NT" SET M2_HOME=%~dp0\..
> Looking at the SVN history, this was changed to %~dps0 to work with spaces 
> http://svn.apache.org/viewcvs.cgi?rev=163778&view=rev

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


[jira] Commented: (MNG-1318) mvn.bat sets incorrect value to M2_HOME [Windows 2000]

Posted by "Stephen B. Hahn (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1318?page=comments#action_54364 ] 

Stephen B. Hahn commented on MNG-1318:
--------------------------------------

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.

> mvn.bat sets incorrect value to M2_HOME [Windows 2000]
> ------------------------------------------------------
>
>          Key: MNG-1318
>          URL: http://jira.codehaus.org/browse/MNG-1318
>      Project: Maven 2
>         Type: Bug

>   Components: Plugins and Lifecycle
>     Versions: 2.0
>  Environment: Windows 2000 SP4 / Maven 2.0
>     Reporter: ajbanck
>      Fix For: 2.0.3

>
>
> When running Maven 2 by calling mvn.bat on Windows 2000 (SP4) the batch file sets M2_HOME to a value including the name of the batch file itself.
> This results in an error:
> ERROR: M2_HOME is set to an invalid directory.
> M2_HOME = C:\maven\maven-2.0\bin\mvn.bat\..
> Please set the M2_HOME variable in your environment to match the location of the Maven installation
> When changing line 72 of mvn.bat to use %~dp0 instead of %~dps0 it works correctly:
> if "%OS%"=="Windows_NT" SET M2_HOME=%~dp0\..
> Looking at the SVN history, this was changed to %~dps0 to work with spaces 
> http://svn.apache.org/viewcvs.cgi?rev=163778&view=rev

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


[jira] Updated: (MNG-1318) mvn.bat sets incorrect value to M2_HOME [Windows 2000]

Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1318?page=all ]

Jason van Zyl updated MNG-1318:
-------------------------------

    Fix Version:     (was: 2.0.3)
                 2.1.1

> mvn.bat sets incorrect value to M2_HOME [Windows 2000]
> ------------------------------------------------------
>
>          Key: MNG-1318
>          URL: http://jira.codehaus.org/browse/MNG-1318
>      Project: Maven 2
>         Type: Bug

>   Components: Command Line
>     Versions: 2.0
>  Environment: Windows 2000 SP4 / Maven 2.0
>     Reporter: ajbanck
>      Fix For: 2.1.1

>
>
> When running Maven 2 by calling mvn.bat on Windows 2000 (SP4) the batch file sets M2_HOME to a value including the name of the batch file itself.
> This results in an error:
> ERROR: M2_HOME is set to an invalid directory.
> M2_HOME = C:\maven\maven-2.0\bin\mvn.bat\..
> Please set the M2_HOME variable in your environment to match the location of the Maven installation
> When changing line 72 of mvn.bat to use %~dp0 instead of %~dps0 it works correctly:
> if "%OS%"=="Windows_NT" SET M2_HOME=%~dp0\..
> Looking at the SVN history, this was changed to %~dps0 to work with spaces 
> http://svn.apache.org/viewcvs.cgi?rev=163778&view=rev

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


[jira] Updated: (MNG-1318) mvn.bat sets incorrect value to M2_HOME [Windows 2000]

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1318?page=all ]

Brett Porter updated MNG-1318:
------------------------------

    Description: 
When running Maven 2 by calling mvn.bat on Windows 2000 (SP4) the batch file sets M2_HOME to a value including the name of the batch file itself.
This results in an error:

ERROR: M2_HOME is set to an invalid directory.
M2_HOME = C:\maven\maven-2.0\bin\mvn.bat\..
Please set the M2_HOME variable in your environment to match the location of the Maven installation

When changing line 72 of mvn.bat to use %~dp0 instead of %~dps0 it works correctly:
if "%OS%"=="Windows_NT" SET M2_HOME=%~dp0\..


Looking at the SVN history, this was changed to %~dps0 to work with spaces 
http://svn.apache.org/viewcvs.cgi?rev=163778&view=rev

  was:
When running Maven 2 by calling mvn.bat on Windows 2000 (SP4) the batch file sets M2_HOME to a value including the name of the batch file itself.
This results in an error:

ERROR: M2_HOME is set to an invalid directory.
M2_HOME = C:\maven\maven-2.0\bin\mvn.bat\..
Please set the M2_HOME variable in your environment to match the location of the Maven installation

When changing line 72 of mvn.bat to use %~dp0 instead of %~dps0 it works correctly:
if "%OS%"=="Windows_NT" SET M2_HOME=%~dp0\..


Looking at the SVN history, this was changed to %~dps0 to work with spaces 
http://svn.apache.org/viewcvs.cgi?rev=163778&view=rev

    Fix Version: 2.0.1

> mvn.bat sets incorrect value to M2_HOME [Windows 2000]
> ------------------------------------------------------
>
>          Key: MNG-1318
>          URL: http://jira.codehaus.org/browse/MNG-1318
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0
>  Environment: Windows 2000 SP4 / Maven 2.0
>     Reporter: ajbanck
>      Fix For: 2.0.1

>
>
> When running Maven 2 by calling mvn.bat on Windows 2000 (SP4) the batch file sets M2_HOME to a value including the name of the batch file itself.
> This results in an error:
> ERROR: M2_HOME is set to an invalid directory.
> M2_HOME = C:\maven\maven-2.0\bin\mvn.bat\..
> Please set the M2_HOME variable in your environment to match the location of the Maven installation
> When changing line 72 of mvn.bat to use %~dp0 instead of %~dps0 it works correctly:
> if "%OS%"=="Windows_NT" SET M2_HOME=%~dp0\..
> Looking at the SVN history, this was changed to %~dps0 to work with spaces 
> http://svn.apache.org/viewcvs.cgi?rev=163778&view=rev

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