You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Olivier Dehon <od...@gmail.com> on 2007/12/22 14:12:11 UTC

Maven site plugin for parent of multimodule project behaves differently in non-recursive mode

Hello,

I created a multimodule project, and the parent has the following URL
defined for the generated site:

<url>http://${sites-host}/sites/MyProject</url>

None of the module POMs define their own <url> tag.

If I run "mvn site:stage", I get relative links to the modules' sites in
the parent's page and everything works fine, but if I run "mvn
--non-recursive site:stage", then the links in the parent's page are
absolute, and the variable is not interpolated in the link, leading to a
(seriously) broken link. (Verbatim in the generated html):
<a href="http://${sites-host}/sites/MyProject/MyModule">

Has someone seen this before?

Since Continuum builds the parent project in non-recursive mode, this is
a bit annoying, as all the parent sites deployed via site-deploy from
Continuum have broken links to their children modules.

Is there a fix or a workaround?

Thanks, -Olivier


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


Re: Maven site plugin for parent of multimodule project behaves differently in non-recursive mode

Posted by Insitu <ab...@oqube.com>.
Olivier Dehon <od...@gmail.com> writes:

> Since Continuum builds the parent project in non-recursive mode, this is
> a bit annoying, as all the parent sites deployed via site-deploy from
> Continuum have broken links to their children modules.
>
> Is there a fix or a workaround?
>

HEllo, 
I had similar problems (different behavior in non-recursive and
recursive mode) and my workaround was to create a specific profile for
continuum execution. More specifically, my problem was due to ../module1 in
module references that generated bad links in site generation. I
created a profile with <module>module1</module> tags so that top-level
site generation works OK, even without modules being generated in the
same run. 

May be you could do the same with the <url> tag ? Note that url tag
cannot be redefined in profile, but your property can be. 

HTH
-- 
Arnaud Bailly, PhD
OQube - Software Engineering
http://www.oqube.com


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