You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by iapazmino <ia...@gmail.com> on 2011/09/07 18:20:17 UTC

Links broken on multimodule site

Hello,

I've got a multimodule project built with maven 3 with the 3.0-beta-3
version for the maven-site-plugin. The parent and every module have an small
site.xml descriptor with a few links and the reports included in the menu
<menu ref="reports"/>, nothing special.

The problem is when trying to navigate from the Project Modules page in the
parent to the modules. This links are broken. For instance the link for the
project-api module points to parent/target/site/project-api/index.html but
the actual location is parent/api/target/site/index.html 

So, there are two problems with this URL, first the module's site is
generated in its own target directory, not in the parent's target directory
as expected. Second, the actual folder for the module is "api", as it's
declared in the parent's pom, but the module's artifactId is project-api.

I read the site:site plugin's goal documentation but can't find anything
useful on this case. Where should I tune this site generation?

Thanks in advance,
IP

--
View this message in context: http://maven.40175.n5.nabble.com/Links-broken-on-multimodule-site-tp4779168p4779168.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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


Re: Links broken on multimodule site

Posted by iapazmino <ia...@gmail.com>.
Thank you. That was exactly the case. I should not pass by the faqs again...

Best regards,
IP

--
View this message in context: http://maven.40175.n5.nabble.com/Links-broken-on-multimodule-site-tp4779168p4779448.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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


Re: Links broken on multimodule site

Posted by Lukas Theussl <lt...@apache.org>.
try site:stage:

http://maven.apache.org/plugins/maven-site-plugin/faq.html#Why_dont_the_links_between_parent_and_child_modules_work_when_I_run_mvn_site

HTH,
-Lukas


iapazmino wrote:
> Hello,
>
> I've got a multimodule project built with maven 3 with the 3.0-beta-3
> version for the maven-site-plugin. The parent and every module have an small
> site.xml descriptor with a few links and the reports included in the menu
> <menu ref="reports"/>, nothing special.
>
> The problem is when trying to navigate from the Project Modules page in the
> parent to the modules. This links are broken. For instance the link for the
> project-api module points to parent/target/site/project-api/index.html but
> the actual location is parent/api/target/site/index.html
>
> So, there are two problems with this URL, first the module's site is
> generated in its own target directory, not in the parent's target directory
> as expected. Second, the actual folder for the module is "api", as it's
> declared in the parent's pom, but the module's artifactId is project-api.
>
> I read the site:site plugin's goal documentation but can't find anything
> useful on this case. Where should I tune this site generation?
>
> Thanks in advance,
> IP
>
> --
> View this message in context: http://maven.40175.n5.nabble.com/Links-broken-on-multimodule-site-tp4779168p4779168.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

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