You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mark Hobson (JIRA)" <ji...@codehaus.org> on 2009/05/21 17:43:42 UTC

[jira] Closed: (MPLUGINTESTING-9) BuildTool.executeMaven fails when local repository path contains spaces

     [ http://jira.codehaus.org/browse/MPLUGINTESTING-9?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Hobson closed MPLUGINTESTING-9.
------------------------------------

         Assignee: Mark Hobson
       Resolution: Fixed
    Fix Version/s: 1.3

Upgraded maven-invoker to 2.0.9 for fix.

> 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
>            Assignee: Mark Hobson
>             Fix For: 1.3
>
>
> 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