You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "John Allen (JIRA)" <ji...@codehaus.org> on 2007/07/18 22:52:13 UTC
[jira] Commented: (MSITE-136) when inheriting site.xml the
[ http://jira.codehaus.org/browse/MSITE-136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_102633 ]
John Allen commented on MSITE-136:
----------------------------------
I think they may be related however its this repeated call to populateProjectParentMenu() in AbstractSiteRenderingMojo::getDecorationModel that causes them to appear:-
{code}
MavenProject parentProject = getParentProject( project );
if ( parentProject != null )
{
DecorationModel parent = getDecorationModel( parentProject, locale, props );
if ( decoration == null )
{
decoration = parent;
}
else
{
assembler.assembleModelInheritance( project.getName(), decoration, parent, project.getUrl(),
parentProject.getUrl() == null ? project.getUrl() : parentProject.getUrl() );
}
if ( decoration != null )
{
populateProjectParentMenu( decoration, locale, parentProject, true );
}
}
return decoration;
{code}
This populateProjectParentMenu( decoration, locale, parentProject, true ) call is thus called for every parent we find that has a site.xml (and this is where inheritance comes into play I think). I will debug in a mo
> when inheriting site.xml the <menu ref='parent'> expands to a menu with links for *all* ancestors and not just the immediate parent
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: MSITE-136
> URL: http://jira.codehaus.org/browse/MSITE-136
> Project: Maven 2.x Site Plugin
> Issue Type: Bug
> Affects Versions: 2.0-beta-5
> Environment: 2.0.4
> Reporter: John Allen
> Fix For: 2.0-beta-7
>
>
> multi-project environment; root project provides site.xml
> root/sub1/sub2/sub3/sub4 site pages get rendered with parent menu containing links for all the ancestors and not just the immediate sub3 parent.
> copying root's site.xml into sub4 results in parent being correctly rendered.
> did not test the results of copying site.xml into the middle of the ancestry so cant say whether the parents list starts at the project that defines the site.xml
--
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