Maven Shared Components
  1. Maven Shared Components
  2. MSHARED-141

MavenCommandLineBuilder incorrectly adds system properties

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: maven-invoker-2.0.7, maven-invoker-2.0.8, maven-invoker-2.0.9, maven-invoker-2.0.10, maven-invoker-2.0.11
    • Fix Version/s: None
    • Component/s: maven-invoker
    • Labels:
      None
    • Flags:
      Patch

      Description

      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"

        Activity

        Andrei Solntsev created issue -
        Andrei Solntsev made changes -
        Field Original Value New Value
        Attachment MSHARED-141-maven-invoker.patch [ 47004 ]
        Robert Scholte made changes -
        Assignee Robert Scholte [ rfscholte ]
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Won't Fix [ 2 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:14:21 UTC 2015 [ 1428239661755 ]
        Mark Thomas made changes -
        Workflow jira [ 12726138 ] Default workflow, editable Closed status [ 12764447 ]
        Mark Thomas made changes -
        Flags Patch [ 10430 ]
        Patch Submitted Yes [ 10763 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 01:15:59 UTC 2015 [ 1428282959282 ]
        Mark Thomas made changes -
        Workflow jira [ 12963971 ] Default workflow, editable Closed status [ 13000521 ]

          People

          • Assignee:
            Robert Scholte
            Reporter:
            Andrei Solntsev
          • Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development