You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Dan Tran (JIRA)" <ji...@codehaus.org> on 2005/11/14 21:58:06 UTC

[jira] Created: (MNG-1561) -Dgoals to use comma separator

-Dgoals to use comma separator
------------------------------

         Key: MNG-1561
         URL: http://jira.codehaus.org/browse/MNG-1561
     Project: Maven 2
        Type: Bug
  Components: maven-release-plugin  
 Environment: xp
    Reporter: Dan Tran
     Fix For: 2.0.1


I am writting a custom plugin in order to do release via maven-release-plugin in once step

So the custom plugin run 2 plexus Commanline, one for prepare and one for release.

However I am not able able to get commandLine to create this argument

mvn release:perform -Dgoals="deploy site:site site:deploy"  using plexus commandLine

In order to make this happen, maven-release-plugin should use String[] for the goals field instead of String
so that the command should look like this

mvn release:perform "-Dgoals=deploy site:site site:deploy" 


Another option is to keep "goals" fieds as String, but requires to use comma as separtor, this way 
the command line will be

mvn release:perform -Dgoals=deploy,site:site,site:deploy

plexus' commandline is happy about those 2 resolutions

I perfer resolution 2 since maven-scm-plugin (m1 and m2)  already uses this approach in it scm:bootstrap





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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-1561) -Dgoals to use comma separator

Posted by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1561?page=all ]
     
Emmanuel Venisse closed MNG-1561:
---------------------------------

     Assign To: Emmanuel Venisse
    Resolution: Fixed

patch in MNG-1553 is applied

> -Dgoals to use comma separator
> ------------------------------
>
>          Key: MNG-1561
>          URL: http://jira.codehaus.org/browse/MNG-1561
>      Project: Maven 2
>         Type: Bug
>   Components: maven-release-plugin
>  Environment: xp
>     Reporter: Dan Tran
>     Assignee: Emmanuel Venisse
>      Fix For: 2.0.1

>
>
> I am writting a custom plugin in order to do release via maven-release-plugin in once step
> So the custom plugin run 2 plexus Commanline, one for prepare and one for release.
> However I am not able able to get commandLine to create this argument
> mvn release:perform -Dgoals="deploy site:site site:deploy"  using plexus commandLine
> In order to make this happen, maven-release-plugin should use String[] for the goals field instead of String
> so that the command should look like this
> mvn release:perform "-Dgoals=deploy site:site site:deploy" 
> Another option is to keep "goals" fieds as String, but requires to use comma as separtor, this way 
> the command line will be
> mvn release:perform -Dgoals=deploy,site:site,site:deploy
> plexus' commandline is happy about those 2 resolutions
> I perfer resolution 2 since maven-scm-plugin (m1 and m2)  already uses this approach in it scm:bootstrap

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org