The way I get this to work is to set "maven.multiproject.site.goals" to
"multiproject:site" in the sandbox project and to "site" in the
mid-level projects (newproj, otherproj).  Actually, I have a goal in the
sandbox project called "gendocs" which has "multiproject:site" as a
prerequisite but I don't think it is really necessary.

-----Original Message-----
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 21, 2005 23:46
To: Maven Users List
Subject: Re: Recursive multiproject site


From: "Wendy Smoak" <[EMAIL PROTECTED]>

>I have a multiproject site that goes three levels deep:
>
> site
> core
> sandbox
> ....newproj
> ........newproj-core
> ........newproj-example
> ....otherproj
> ........otherproj-core
> ........otherproj-example
>
> I have maven.multiproject.site.goals=multiproject in
project.properties at 
> the 'sandbox' and 'newproj' and 'otherproj' levels.
>
> When I run 'maven multiproject:site' from the 'site' subproject, all
of 
> the documentation *is* getting created.  It looks good at (for
example) 
> the sandbox/newproj/target/docs level-- the core and example
subproject 
> docs are there.

No, they're not.  The multiproject:clean goal isn't descending past the 
'sandbox' level, so there were old files lying around.

If I cd to sandbox and run multiproject:site, THEN I get all the files
(and 
the next time through, they'll get copied up.)

So the problem is with running 'multiproject:site' *from* the 'site' 
subdirectory.  It makes sense that this would call 'site' for each of
the 
sub-projects.  Okay so far... but now anything I try, such as (in
'sandbox' 
maven.xml):
   <postGoal name="site">
     <attainGoal name="multiproject:site"/>
   </postGoal>
causes an endless loop.

I imagine the solution is *very* simple and I've just been staring at it
too 
long.

How do I get multiproject:site to descend all the way down to the bottom
of 
the structure, and copy everything up into site/target/docs?

Thanks,
-- 
Wendy Smoak 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to