Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-21

Spaces are incorrectly handled on command line

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • maven-invoker-2.0.9
    • maven-invoker
    • None
    • Windows, Maven Invoker Plugin 1.2, Maven Invoker 2.0.8

    Description

      The command line used to fork Maven on Windows looks like:

      [DEBUG] Executing: cmd.exe /X /C "D:\Programme\Java\maven-2.0.9\bin\mvn.bat -B -e "-Dmaven.repo.local="M:\maven\mojo\javacc-maven-plugin\target\local repo"" -f interpolated-pom.xml -s M:\maven\mojo\javacc-maven-plugin\src\it\settings.xml.interpolated clean compile"
      

      which makes Maven exit with

      [ERROR] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Invalid task 'repo': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
      

      The same invocation on Unix looks like

      Executing: /bin/sh -c cd /home/bentmann/maven/javacc-maven-plugin/target/it/jjtree-reactor-build && /usr/local/apache-maven/apache-maven-2.0.9/bin/mvn -B -e '-Dmaven.repo.local="/home/bentmann/maven/javacc-maven-plugin/target/local repo"' -f interpolated-pom.xml -s /home/bentmann/maven/javacc-maven-plugin/src/it/settings.xml.interpolated clean compile
      

      which works.

      Maybe we can just simplify the maven-invoker to not add quotes, plexus-utils should handle this automatically.

      Attachments

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              bentmann Benjamin Bentmann
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: