You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2016/10/15 23:42:20 UTC
[jira] [Closed] (MNG-5318) mvn.bat fail on TTC/LE when -Dkey=value
parameters are not quoted
[ https://issues.apache.org/jira/browse/MNG-5318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed MNG-5318.
-------------------------------
Resolution: Not A Problem
The startup scripts have been completely rewritten. You patch/usecase does not apply anymore. If this issue still persists, provide a usecase for 3.3.9.
> mvn.bat fail on TTC/LE when -Dkey=value parameters are not quoted
> -----------------------------------------------------------------
>
> Key: MNG-5318
> URL: https://issues.apache.org/jira/browse/MNG-5318
> Project: Maven
> Issue Type: Bug
> Components: Command Line
> Affects Versions: 3.0.4
> Environment: windows-7, tccle.ex
> Reporter: zart colwing
> Attachments: mvn_bat.patch, 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 was sent by Atlassian JIRA
(v6.3.4#6332)