maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (JIRA)" <>
Subject [jira] (MSHARED-141) MavenCommandLineBuilder incorrectly adds system properties
Date Tue, 02 Oct 2012 19:19:44 GMT


Robert Scholte commented on MSHARED-141:

I'm not sure if this will always work. For instance: IIUC there's a difference of quoting
arguments between Windows and Linux.
For Windows it is {{-Darg="some value with spaces"}}, whereas with Linux it's {{'-Darg=some
value with spaces'}} (correct me if I'm wrong).

> MavenCommandLineBuilder incorrectly adds system properties
> ----------------------------------------------------------
>                 Key: MSHARED-141
>                 URL:
>             Project: Maven Shared Components
>          Issue Type: Bug
>          Components: maven-invoker
>    Affects Versions: maven-invoker-2.0.7, maven-invoker-2.0.8, maven-invoker-2.0.9, maven-invoker-2.0.10,
>            Reporter: Andrei Solntsev
>            Priority: Minor
>         Attachments: MSHARED-141-maven-invoker.patch
> Class MavenCommandLineBuilder adds system properties with spaces.
> For example, given the following properties: {skipTests=true, listScmChanges=}
> MavenCommandLineBuilder generates the following command line:
> cmd.exe /X /C "C:\Programs\apache-maven-2.2.1\bin\mvn.bat -B -N -e -D skipTests=true
-D listScmChanges="
> The correct form is without spaces: "-DskipTests=true -DlistScmChanges"

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message