[ http://jira.codehaus.org/browse/MSHARED-21?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg updated MSHARED-21: ----------------------------------- Fix Version/s: maven-invoker 2.0.9 > Spaces are incorrectly handled on command line > ---------------------------------------------- > > Key: MSHARED-21 > URL: http://jira.codehaus.org/browse/MSHARED-21 > Project: Maven Shared Components > Issue Type: Bug > Components: maven-invoker > Environment: Windows, Maven Invoker Plugin 1.2, Maven Invoker 2.0.8 > Reporter: Benjamin Bentmann > Assignee: Benjamin Bentmann > Fix For: maven-invoker 2.0.9 > > > The command line used to fork Maven on Windows looks like: > {noformat} > [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" > {noformat} > which makes Maven exit with > {noformat} > [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 > {noformat} > The same invocation on Unix looks like > {noformat} > 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 > {noformat} > which works. > Maybe we can just simplify the maven-invoker to not add quotes, plexus-utils > should handle this automatically. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira