[ 
https://issues.apache.org/jira/browse/DOXIASITETOOLS-330?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alexander Kriegisch updated DOXIASITETOOLS-330:
-----------------------------------------------
    Summary: Option to ignore parent site.xml or override XML elements like 
breadcrumbs and links  (was: Option to override parent breadcrumbs and links)

> Option to ignore parent site.xml or override XML elements like breadcrumbs 
> and links
> ------------------------------------------------------------------------------------
>
>                 Key: DOXIASITETOOLS-330
>                 URL: https://issues.apache.org/jira/browse/DOXIASITETOOLS-330
>             Project: Maven Doxia Sitetools
>          Issue Type: Improvement
>          Components: Site model
>    Affects Versions: 2.0.0-M16
>            Reporter: Alexander Kriegisch
>            Priority: Major
>
> I have a use case in which I want to use a parent POM, because its defined 
> dependencies and plugins are exactly what I need. However, the parent POM has 
> a {{site.xml}} attached which I would like to completely replace, not 
> inherit. As that does not seem to be possible, at least I need to override 
> some existing entries of the site structure. While some like {{bannerLeft}} 
> can just be redefined, there is no way to remove them completely. Especially 
> annoying in my use case is the fact that I cannot override parent breadcrumbs.
> As you can see 
> [here|https://github.com/apache/maven-doxia-sitetools/blob/5fe4a4c5359e6a23b78f385e15f77767cadaee99/doxia-site-model/src/main/java/org/apache/maven/doxia/site/inheritance/DefaultSiteModelInheritanceAssembler.java#L163-L164]
>  and 
> [here|https://github.com/apache/maven-doxia-sitetools/blob/5fe4a4c5359e6a23b78f385e15f77767cadaee99/doxia-site-model/src/main/java/org/apache/maven/doxia/site/inheritance/DefaultSiteModelInheritanceAssembler.java#L239-L268],
>  method {{‎DefaultSiteModelInheritanceAssembler::mergeLinkItemLists}} only 
> permits limited interactions with parent breadcrumbs, i.e. I can copy the 
> first one (which I want to get rid of, too) and cut off after that. But this 
> is not what I need.
> What I need at least, is to be able to use something like {{<breadcrumbs 
> combine.self="override">}}, similar to Maven plugin configurations. Better 
> still would be an option to use that in all tags on all levels or an option 
> exposable to Maven Site to generally ignore a parent {{site.xml}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to