[ 
http://jira.codehaus.org/browse/MRELEASE-488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=203351#action_203351
 ] 

Martin Jaeger commented on MRELEASE-488:
----------------------------------------

I found the same issue and confirm the problem.

> -Dgoals option no longer accepts a comma (in release:perform)
> -------------------------------------------------------------
>
>                 Key: MRELEASE-488
>                 URL: http://jira.codehaus.org/browse/MRELEASE-488
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: perform
>    Affects Versions: 2.0-beta-9
>            Reporter: Chris LeCompte
>
> The -Dgoals option no longer accepts a comma separated list of goals.  This 
> appears to be related to the way that the InvokerMavenExecutor is parsing the 
> string:
>             String[] rawGoals = goals.split( " " );
> as opposed to the forked maven executor:
>             String[] tokens = StringUtils.split( goals, ", " );
> a workaround for this is either to revert back to the beta-7 version, add the 
> -DmavenExecutorId=forked-path or use spaces as a delimiter and quote the 
> goals string.  To reproduce use a command like:
> mvn release:perform -Dgoals=clean,install -DconnectionUrl=...
> the command will fail with an error such as:
> [INFO] [INFO] Invalid task 'clean,install': you must specify a valid 
> lifecycle phase, or a goal in the format plugin:goal or 
> pluginGroupId:pluginArtifactId:pluginVersion:goal

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