You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Arnaud Heritier (JIRA)" <ji...@codehaus.org> on 2006/03/05 23:31:14 UTC

[jira] Created: (MAVEN-1750) Can't use two times a multiprojects in 2 differents goals

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


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