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 10:59:11 UTC
[jira] Created: (MNG-1317) m2.bat doesn't work on Windows 2000
m2.bat doesn't work on Windows 2000
-----------------------------------
Key: MNG-1317
URL: http://jira.codehaus.org/browse/MNG-1317
Project: Maven 2
Type: Bug
Components: maven-core
Versions: 2.0
Environment: Windows 2000/SP4 Maven 2.0
Reporter: ajbanck
the m2.bat doesn't work on Windows 2000.
This batch uses '%~dps0\mvn %*' to call the mvn batch file. %~dps0 expands to the path including the batch name, resulting in an incorrect path.
Looking at another batch (cruisecontrol.bat) uses %~dp0 instead of %~dps0
Current Output with echo turned on:
C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>m2 compile
>echo.
>echo THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>echo.
>C:\cc_stg\HERCUL~1\METADA~1\external\maven\maven-2.0\bin\m2.bat\mvn compile
The directory name is invalid.
--
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-1317) m2.bat doesn't work on Windows 2000
Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1317?page=all ]
Kenney Westerhof closed MNG-1317:
---------------------------------
Assign To: Kenney Westerhof
Resolution: Fixed
Fix Version: (was: 2.0.4)
2.0.3
Fixed in revision 382797.
Use ~dp0 instead of ~dps0 (which works correctly,
but produces long filenames), and add double quotes
so the long filenames work.
> m2.bat doesn't work on Windows 2000
> -----------------------------------
>
> Key: MNG-1317
> URL: http://jira.codehaus.org/browse/MNG-1317
> 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
>
>
> the m2.bat doesn't work on Windows 2000.
> This batch uses '%~dps0\mvn %*' to call the mvn batch file. %~dps0 expands to the path including the batch name, resulting in an incorrect path.
> Looking at another batch (cruisecontrol.bat) uses %~dp0 instead of %~dps0
> Current Output with echo turned on:
> C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>m2 compile
> >echo.
> >echo THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
> THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
> C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>echo.
> >C:\cc_stg\HERCUL~1\METADA~1\external\maven\maven-2.0\bin\m2.bat\mvn compile
> The directory name is invalid.
--
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-1317) m2.bat doesn't work on Windows 2000
Posted by "Stephen B. Hahn (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1317?page=comments#action_54367 ]
Stephen B. Hahn commented on MNG-1317:
--------------------------------------
The following modifiaction fixed m2.bat:
for %%i in (%~sf0) do %%~dspimvn %*
> m2.bat doesn't work on Windows 2000
> -----------------------------------
>
> Key: MNG-1317
> URL: http://jira.codehaus.org/browse/MNG-1317
> 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
>
>
> the m2.bat doesn't work on Windows 2000.
> This batch uses '%~dps0\mvn %*' to call the mvn batch file. %~dps0 expands to the path including the batch name, resulting in an incorrect path.
> Looking at another batch (cruisecontrol.bat) uses %~dp0 instead of %~dps0
> Current Output with echo turned on:
> C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>m2 compile
> >echo.
> >echo THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
> THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
> C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>echo.
> >C:\cc_stg\HERCUL~1\METADA~1\external\maven\maven-2.0\bin\m2.bat\mvn compile
> The directory name is invalid.
--
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-1317) m2.bat doesn't work on Windows 2000
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1317?page=all ]
Brett Porter updated MNG-1317:
------------------------------
Description:
the m2.bat doesn't work on Windows 2000.
This batch uses '%~dps0\mvn %*' to call the mvn batch file. %~dps0 expands to the path including the batch name, resulting in an incorrect path.
Looking at another batch (cruisecontrol.bat) uses %~dp0 instead of %~dps0
Current Output with echo turned on:
C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>m2 compile
>echo.
>echo THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>echo.
>C:\cc_stg\HERCUL~1\METADA~1\external\maven\maven-2.0\bin\m2.bat\mvn compile
The directory name is invalid.
was:
the m2.bat doesn't work on Windows 2000.
This batch uses '%~dps0\mvn %*' to call the mvn batch file. %~dps0 expands to the path including the batch name, resulting in an incorrect path.
Looking at another batch (cruisecontrol.bat) uses %~dp0 instead of %~dps0
Current Output with echo turned on:
C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>m2 compile
>echo.
>echo THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>echo.
>C:\cc_stg\HERCUL~1\METADA~1\external\maven\maven-2.0\bin\m2.bat\mvn compile
The directory name is invalid.
Fix Version: 2.0.1
> m2.bat doesn't work on Windows 2000
> -----------------------------------
>
> Key: MNG-1317
> URL: http://jira.codehaus.org/browse/MNG-1317
> 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
>
>
> the m2.bat doesn't work on Windows 2000.
> This batch uses '%~dps0\mvn %*' to call the mvn batch file. %~dps0 expands to the path including the batch name, resulting in an incorrect path.
> Looking at another batch (cruisecontrol.bat) uses %~dp0 instead of %~dps0
> Current Output with echo turned on:
> C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>m2 compile
> >echo.
> >echo THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
> THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
> C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>echo.
> >C:\cc_stg\HERCUL~1\METADA~1\external\maven\maven-2.0\bin\m2.bat\mvn compile
> The directory name is invalid.
--
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-1317) m2.bat doesn't work on Windows 2000
Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1317?page=all ]
Jason van Zyl updated MNG-1317:
-------------------------------
Fix Version: (was: 2.0.3)
2.1.1
> m2.bat doesn't work on Windows 2000
> -----------------------------------
>
> Key: MNG-1317
> URL: http://jira.codehaus.org/browse/MNG-1317
> 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
>
>
> the m2.bat doesn't work on Windows 2000.
> This batch uses '%~dps0\mvn %*' to call the mvn batch file. %~dps0 expands to the path including the batch name, resulting in an incorrect path.
> Looking at another batch (cruisecontrol.bat) uses %~dp0 instead of %~dps0
> Current Output with echo turned on:
> C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>m2 compile
> >echo.
> >echo THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
> THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
> C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>echo.
> >C:\cc_stg\HERCUL~1\METADA~1\external\maven\maven-2.0\bin\m2.bat\mvn compile
> The directory name is invalid.
--
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-1317) m2.bat doesn't work on Windows 2000
Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1317?page=all ]
Jason van Zyl updated MNG-1317:
-------------------------------
Fix Version: (was: 2.1.1)
2.0.4
> m2.bat doesn't work on Windows 2000
> -----------------------------------
>
> Key: MNG-1317
> URL: http://jira.codehaus.org/browse/MNG-1317
> 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
>
>
> the m2.bat doesn't work on Windows 2000.
> This batch uses '%~dps0\mvn %*' to call the mvn batch file. %~dps0 expands to the path including the batch name, resulting in an incorrect path.
> Looking at another batch (cruisecontrol.bat) uses %~dp0 instead of %~dps0
> Current Output with echo turned on:
> C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>m2 compile
> >echo.
> >echo THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
> THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
> C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>echo.
> >C:\cc_stg\HERCUL~1\METADA~1\external\maven\maven-2.0\bin\m2.bat\mvn compile
> The directory name is invalid.
--
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-1317) m2.bat doesn't work on Windows 2000
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1317?page=all ]
John Casey updated MNG-1317:
----------------------------
Fix Version: (was: 2.0.1)
2.0.2
> m2.bat doesn't work on Windows 2000
> -----------------------------------
>
> Key: MNG-1317
> URL: http://jira.codehaus.org/browse/MNG-1317
> 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
>
>
> the m2.bat doesn't work on Windows 2000.
> This batch uses '%~dps0\mvn %*' to call the mvn batch file. %~dps0 expands to the path including the batch name, resulting in an incorrect path.
> Looking at another batch (cruisecontrol.bat) uses %~dp0 instead of %~dps0
> Current Output with echo turned on:
> C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>m2 compile
> >echo.
> >echo THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
> THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
> C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>echo.
> >C:\cc_stg\HERCUL~1\METADA~1\external\maven\maven-2.0\bin\m2.bat\mvn compile
> The directory name is invalid.
--
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-1317) m2.bat doesn't work on Windows 2000
Posted by "Grzegorz Slowikowski (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1317?page=comments#action_49224 ]
Grzegorz Slowikowski commented on MNG-1317:
-------------------------------------------
Read this:
http://mail-archives.apache.org/mod_mbox/maven-users/200504.mbox/%3C4261D3B8.1050605@gmail.com%3E
> m2.bat doesn't work on Windows 2000
> -----------------------------------
>
> Key: MNG-1317
> URL: http://jira.codehaus.org/browse/MNG-1317
> Project: Maven 2
> Type: Bug
> Components: maven-core
> Versions: 2.0
> Environment: Windows 2000/SP4 Maven 2.0
> Reporter: ajbanck
>
>
> the m2.bat doesn't work on Windows 2000.
> This batch uses '%~dps0\mvn %*' to call the mvn batch file. %~dps0 expands to the path including the batch name, resulting in an incorrect path.
> Looking at another batch (cruisecontrol.bat) uses %~dp0 instead of %~dps0
> Current Output with echo turned on:
> C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>m2 compile
> >echo.
> >echo THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
> THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
> C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>echo.
> >C:\cc_stg\HERCUL~1\METADA~1\external\maven\maven-2.0\bin\m2.bat\mvn compile
> The directory name is invalid.
--
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-1317) m2.bat doesn't work on Windows 2000
Posted by "Grzegorz Slowikowski (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1317?page=comments#action_49223 ]
Grzegorz Slowikowski commented on MNG-1317:
-------------------------------------------
I have this problem on Windows XP and I found something strange.
If path to your batch contains no long elements (longer than old 8.3 filename restriction)
then %~dps0 returns path without filename. If it contains longer elements
(eg. Hercules_nl, MetadataRepository) then it returns path WITH filename in 8.3 old
DOS format.
%~dp0 always works fine on my system.
> m2.bat doesn't work on Windows 2000
> -----------------------------------
>
> Key: MNG-1317
> URL: http://jira.codehaus.org/browse/MNG-1317
> Project: Maven 2
> Type: Bug
> Components: maven-core
> Versions: 2.0
> Environment: Windows 2000/SP4 Maven 2.0
> Reporter: ajbanck
>
>
> the m2.bat doesn't work on Windows 2000.
> This batch uses '%~dps0\mvn %*' to call the mvn batch file. %~dps0 expands to the path including the batch name, resulting in an incorrect path.
> Looking at another batch (cruisecontrol.bat) uses %~dp0 instead of %~dps0
> Current Output with echo turned on:
> C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>m2 compile
> >echo.
> >echo THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
> THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
> C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>echo.
> >C:\cc_stg\HERCUL~1\METADA~1\external\maven\maven-2.0\bin\m2.bat\mvn compile
> The directory name is invalid.
--
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-1317) m2.bat doesn't work on Windows 2000
Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1317?page=all ]
Jason van Zyl updated MNG-1317:
-------------------------------
Component: (was: Plugins and Lifecycle)
Command Line
> m2.bat doesn't work on Windows 2000
> -----------------------------------
>
> Key: MNG-1317
> URL: http://jira.codehaus.org/browse/MNG-1317
> 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
>
>
> the m2.bat doesn't work on Windows 2000.
> This batch uses '%~dps0\mvn %*' to call the mvn batch file. %~dps0 expands to the path including the batch name, resulting in an incorrect path.
> Looking at another batch (cruisecontrol.bat) uses %~dp0 instead of %~dps0
> Current Output with echo turned on:
> C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>m2 compile
> >echo.
> >echo THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
> THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
> C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>echo.
> >C:\cc_stg\HERCUL~1\METADA~1\external\maven\maven-2.0\bin\m2.bat\mvn compile
> The directory name is invalid.
--
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-1317) m2.bat doesn't work on Windows 2000
Posted by "Stephen B. Hahn (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1317?page=comments#action_54365 ]
Stephen B. Hahn commented on MNG-1317:
--------------------------------------
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.
> m2.bat doesn't work on Windows 2000
> -----------------------------------
>
> Key: MNG-1317
> URL: http://jira.codehaus.org/browse/MNG-1317
> 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
>
>
> the m2.bat doesn't work on Windows 2000.
> This batch uses '%~dps0\mvn %*' to call the mvn batch file. %~dps0 expands to the path including the batch name, resulting in an incorrect path.
> Looking at another batch (cruisecontrol.bat) uses %~dp0 instead of %~dps0
> Current Output with echo turned on:
> C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>m2 compile
> >echo.
> >echo THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
> THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
> C:\cc_stg\Hercules_nl\MetadataRepository\shared\util>echo.
> >C:\cc_stg\HERCUL~1\METADA~1\external\maven\maven-2.0\bin\m2.bat\mvn compile
> The directory name is invalid.
--
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