[ http://jira.codehaus.org/browse/MAVEN-1750?page=comments#action_66747 ] 

Lukas Theussl commented on MAVEN-1750:
--------------------------------------

Arnaud: I cannot reproduce any of the above, is that still an issue for you?

> Can't use two times a multiprojects in 2 differents goals
> ---------------------------------------------------------
>
>          Key: MAVEN-1750
>          URL: http://jira.codehaus.org/browse/MAVEN-1750
>      Project: Maven
>         Type: Bug

>     Versions: 1.1-beta-3
>  Environment: 1.1-beta-3 from trunk
>     Reporter: Arnaud Heritier
>      Fix For: 1.1-beta-3

>
>
> in the plugins-site project (in plugins and in the sandbox) we have two goals:
> plugins:build-all-sites which calls multiproject:site (to create the main 
> site) and the goal "site" through a multiproject:goal  (to create each plugin 
> site)
> plugins:deploy-all-sites which calls site:${maven.site.deploy.method}deploy 
> (to deploy the main site) and the goal site:${maven.site.deploy.method}deploy 
> through multiproject:goal (to deploy each plugin site)
> In the plugins root project we have the same goals which call the ones in the 
> plugins-site (with maven:maven)
> I tried to create a goal to call these two goals successively.
> {code:xml} 
> <goal 
>   name="plugins:build-and-deploy-all-sites" 
>   description="Build and deploy the web site for all plugins and for the root 
> site" 
>   prereqs="plugins:build-all-sites,plugins:deploy-all-sites"/>
> <goal 
>   name="plugins:build-and-deploy-all-sites2" 
>   description="Build and deploy the web site for all plugins and for the root 
> site">
>   <attainGoal name="plugins:build-all-sites"/>
>   <attainGoal name="plugins:deploy-all-sites"/>
> </goal>
> {code} 
> If I call these goals from the project plugins-site or if I call the 2 goals 
> from the command line (maven plugins:build-all-sites 
> plugins:deploy-all-sites) I receive this error :
> {code} 
> BUILD FAILED
> File...... 
> file:/d:/Data/maven-1/cache/maven-multiproject-plugin-1.5-SNAPSHOT/plugin.jelly
> Element... maven:param-check
> Line...... 215
> Column.... -1
> A goal to run must be specified, e.g.
> maven -Dgoal=clean multiproject:goal
> {code} 
> This error happens when the multiproject is called in 
> plugins:deploy-all-sites to deploy all plugins sites.
> I displayed the value of the variable goal just before the attainGoal and the 
> value is correct
> If we run the goals build-and-deploy-all-sites and 
> build-and-deploy-all-sites2 from the plugins root we have the same error
> But if we call "maven plugins:build-all-sites plugins:deploy-all-sites" it 
> works.

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