Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: maven-invoker-2.0.9
-
Component/s: maven-invoker
-
Labels:None
-
Environment:Windows, Maven Invoker Plugin 1.2, Maven Invoker 2.0.8
-
Number of attachments :
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.
Issue Links
| This issue is related to: | ||||
| PLXUTILS-64 | working directory not quoted: unpack of tar files fail with ArchiverException: chmod exit code was: 1 |
|
|
|
| MSHARED-9 | invoker doesn't properly handle paths with spaces |
|
|
|
| This issue is depended upon by: | ||||
| MINVOKER-39 | Spaces are incorrectly handled on command line |
|
|
|
| MRELEASE-366 | Using InvokerMavenExecutor fails in combination with space in paths |
|
|
|
| MPLUGINTESTING-9 | BuildTool.executeMaven fails when local repository path contains spaces |
|
|
|
Hm,
Will be interesting to see whether there is one cmd line to work with both.