zart colwing created MNG-5318:
---------------------------------
Summary: mvn.bat fail on TTC/LE when -Dkey=value parameters are
not quoted
Key: MNG-5318
URL: https://jira.codehaus.org/browse/MNG-5318
Project: Maven 2 & 3
Issue Type: Bug
Components: Command Line
Affects Versions: 3.0.4
Environment: windows-7, tccle.ex
Reporter: zart colwing
Attachments: mvn_bat.patch
When the mvn command contains an unquoted -Dkey=value parameter then mvn fail
with a:
[ERROR] Unknown lifecycle phase "<value>". You must specify a valid lifecycle
phase or a goal in the format <plugin-prefix>:<goal> or...
The problem is that the bat file execute:
set MAVEN_CMD_LINE_ARGS=%$ (on line 129)
instead of
set MAVEN_CMD_LINE_ARGS=%* (on line 124)
when it detect TCC/LE (on line 121)
from http://www.robvanderwoude.com/parameters.php
%$ replace '=' by space unless they are part of a string in doublequotes.
%* will leave all delimiters intact
A possible fix is to use %* in both case.
Another possible fix is to remove (or comment out) the TCC/LE detection on line
121 and let the script fall-through to the "Regular WinNT" case.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira