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

[jira] Created: (MNG-1273) Current installation instructions for Windows do not mention M2_HOME. It is required and cannot have spaces.

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
    Versions: 2.0    
 Environment: Windows
 Reporter: Richard Bondi
    Priority: Minor


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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-1273) Current installation instructions for Windows do not mention M2_HOME. It is required and cannot have spaces.

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

John Casey updated MNG-1273:
----------------------------

    Fix Version:     (was: 2.0.1)
                 2.0.2

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

>
>
> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-1273) Current installation instructions for Windows do not mention M2_HOME. It is required and cannot have spaces.

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

John Casey updated MNG-1273:
----------------------------

    Description: 
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.)



  was:
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.)



      Component: documentation - general

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

>
>
> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1273) Current installation instructions for Windows do not mention M2_HOME. It is required and cannot have spaces.

Posted by "Grzegorz Slowikowski (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1273?page=comments#action_54012 ] 

Grzegorz Slowikowski commented on MNG-1273:
-------------------------------------------

I commented this issue here: http://jira.codehaus.org/browse/MNG-1317
but this issue is still open.

I personally changed in my m2.bat file from "%~dps0" to "%~dp0" and it works.
I found in MNG-1318 (http://jira.codehaus.org/browse/MNG-1318) that "%~dps0"
has something to do with Windows NT. I have XP, so I cannot check if "%~dp0"
would work on NT or not.

But when using "mvn.bat" instead of "m2.bat" there is no issue.

> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-1273) Current installation instructions for Windows do not mention M2_HOME. It is required and cannot have spaces.

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

      Assign To: Brett Porter
     Resolution: Duplicate
    Fix Version:     (was: 2.0.3)

> 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
>     Assignee: Brett Porter
>     Priority: Minor

>
>
> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1273) Current installation instructions for Windows do not mention M2_HOME. It is required and cannot have spaces.

Posted by "Stephen B. Hahn (JIRA)" <ji...@codehaus.org>.
    [ 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-1273) Current installation instructions for Windows do not mention M2_HOME. It is required and cannot have spaces.

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

Brett Porter updated MNG-1273:
------------------------------

    Fix Version: 2.0.1

We will need assistance debugging this, as it works on both my Windows XP Home and XP Professional (SP2) machines.

(1) is addressed by using %~dps0\.. as M2_HOME by default (which returns the location of the batch file, the bin directory)
(2) is addressed by the s in %~dps0 which makes it give back the short name

> 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
>     Versions: 2.0
>  Environment: Windows
>     Reporter: Richard Bondi
>     Priority: Minor
>      Fix For: 2.0.1

>
>
> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1273) Current installation instructions for Windows do not mention M2_HOME. It is required and cannot have spaces.

Posted by "Brent Worden (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1273?page=comments#action_53938 ] 

Brent Worden commented on MNG-1273:
-----------------------------------

I believe this is a bug in Win2K.  I installed m2 to c:\apps\maven-2.0.1 on a Win2K machine.  Tinkering with the batch file, I found %~dps0 doesn't expand very nicely.  Here is a comparison between %~dp0 and %~dps0:

{noformat}
using %~dp0:  C:\apps\maven-2.0.1\bin\
using %~dps0: C:\apps\MAVEN-~1.1\bin\m
{noformat}

Notice the short name expansion doesn't make an attempt to demarcate the directory correctly.  It appears to just preserve the string length.

Unless someone can come up with some batch file magic to massage the short name expansion, I, for one, would not attempt to fix this problem and simply document it as a deficiency in Win2K and that M2_HOME should be explicitly defined as an environment variable.


> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org