[
https://jira.codehaus.org/browse/MSITE-569?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov closed MSITE-569.
--------------------------------
Resolution: Won't Fix
Please refer to
https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014
if you're wondering why this issue was closed out.
> Deprecate inheritAsRef
> ----------------------
>
> Key: MSITE-569
> URL: https://jira.codehaus.org/browse/MSITE-569
> Project: Maven Site Plugin
> Issue Type: Bug
> Components: inheritance, site descriptor
> Affects Versions: 2.2, 3.0-beta-3
> Reporter: Lukas Theussl
>
> The [decorationModel
> docs|http://maven.apache.org/doxia/doxia-sitetools/doxia-decoration-model/decoration.html#class_menu]
> say about the inheritAsRef parameter:
> {noformat}
> If this is a reference, setting true means that it will be populated in the
> project,
> whereas if it is false, it is populated in the parent and then inherited.
> Default value is: false.
> {noformat}
> This is apparently a documentation bug as leaving away the inheritAsRef
> parameter the refs get populated in the (inheriting) child project. Eg the
> maven [parent
> pom|https://svn.apache.org/repos/asf/maven/pom/trunk/maven/src/site/site.xml]
> defines a <menu ref="reports" inherit="bottom" /> element (ie
> inheritAsRef=false), but the intent (and actual effect) is that this menu
> contains the reports of the inheriting projects, and not those of the maven
> parent pom.
> However, specifying inheritAsRef=true does not work as expected. There is an
> [IT|https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-site-plugin/src/it/inheritedMenus/]
> that compares the difference, one can see that the menus do not get
> populated in the parent project.
> Above all, I don't quite see the use of this parameter, why would one want
> the parent's parent/modules/reports in the child project? Brett mentioned
> somewhere that the original intent was to enable a permanent link to a
> top-level parent project. This can simply be achieved with a normal menu that
> gets inherited.
> So given all that, that there is no use case, that it's wrongly documented
> and that it doesn't work, I propose to deprecate the feature.
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)