Return-Path: Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: (qmail 60153 invoked from network); 21 May 2009 15:27:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 May 2009 15:27:58 -0000 Received: (qmail 49149 invoked by uid 500); 21 May 2009 15:28:11 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 49071 invoked by uid 500); 21 May 2009 15:28:10 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 49061 invoked by uid 99); 21 May 2009 15:28:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2009 15:28:10 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [63.246.2.115] (HELO codehaus01.managed.contegix.com) (63.246.2.115) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2009 15:28:02 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 0AF7714A81A4 for ; Thu, 21 May 2009 10:27:42 -0500 (CDT) Message-ID: <7946721.6481242919662041.JavaMail.haus-jira@codehaus01.managed.contegix.com> Date: Thu, 21 May 2009 10:27:42 -0500 (CDT) From: "Mark Hobson (JIRA)" To: issues@maven.apache.org Subject: [jira] Created: (MPLUGINTESTING-9) BuildTool.executeMaven fails when local repository path contains spaces MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 4e90ceb663894a42f12c0e28abbab431 X-Virus-Checked: Checked by ClamAV on apache.org 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