[ 
http://jira.codehaus.org/browse/MPLUGINTESTING-9?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=177469#action_177469
 ] 

Mark Hobson commented on MPLUGINTESTING-9:
------------------------------------------

Due to maven-invoker issue MSHARED-21, fixed in 2.0.9.

> BuildTool.executeMaven fails when local repository path contains spaces
> -----------------------------------------------------------------------
>
>                 Key: MPLUGINTESTING-9
>                 URL: http://jira.codehaus.org/browse/MPLUGINTESTING-9
>             Project: Maven 2.x Plugin Testing
>          Issue Type: Bug
>          Components: plugin-testing-tools
>    Affects Versions: 1.2
>         Environment: Windows XP, Cygwin
>            Reporter: Mark Hobson
>
> BuildTool.executeMaven is trying to execute the following command:
> {noformat}cmd.exe /X /C ""C:\Program Files 
> (x86)\apache-maven-2.1.0\bin\mvn.bat" -B "-Dmaven.repo.local="C:\Documents 
> and Settings\mark\My 
> Documents\myproject\target\test-classes\repository"""{noformat}
> Which fails with the following build log due to mismatched quotes:
> {noformat}
> [INFO] Scanning for projects...
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Invalid task 'and': you must specify a valid lifecycle phase, or a 
> goal in the format plugin:goal or 
> pluginGroupId:pluginArtifactId:pluginVersion:goal
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Thu May 21 16:19:29 BST 2009
> [INFO] Final Memory: 1M/3M
> [INFO] 
> ------------------------------------------------------------------------
> {noformat}
> As you can see, my Maven installation path contains spaces, as so does my 
> local repository path.  It appears that the problem is that 
> MavenCommandLineBuilder is trying to quote the value of maven.repo.local 
> which is confusing the already quoted -D argument.

-- 
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

        

Reply via email to