[
https://issues.apache.org/jira/browse/DOXIASITETOOLS-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17702176#comment-17702176
]
Michael Osipov commented on DOXIASITETOOLS-293:
-----------------------------------------------
{{MavenSession#getProjectDependencyGraph().getDownstreamProjects(project,
false)}} cannot be used if we have an aggregator project since the child
modules do not define the caller as parent this the DAG via
{{ProjectDependencyGraph}} isn't populated. We must resort to the
{{reactorProjects}} again.
> Remove menu items link in the sidebar to submodule that are not present in
> the same build (reactor)
> ---------------------------------------------------------------------------------------------------
>
> Key: DOXIASITETOOLS-293
> URL: https://issues.apache.org/jira/browse/DOXIASITETOOLS-293
> Project: Maven Doxia Sitetools
> Issue Type: Improvement
> Components: Integration Tools
> Affects Versions: 2.0.0-M5
> Reporter: Michael Osipov
> Assignee: Michael Osipov
> Priority: Major
> Fix For: 2.0.0-M6
>
>
> This is an extension to DOXIASITETOOLS-278:
> We have some multi-module projects where a few modules may be omitted from
> the build, e.g., with profiles or {{-pl}} and the site is not generated, but
> in the maven site of parent project they appear in the sidebar menu, clearly
> if you click on those links are broken.
> Only project modules should be rendered/added if they are in the current
> reactor instead of trying to load them from FS.
> The immediate modules can be passed with a call from
> {{MavenSession#getProjectDependencyGraph().getDownstreamProjects(project,
> false)}}.
> In constrast to DOXIASITETOOLS-278 where the module is present in the
> reactor, but just ite generation is disabled, therefore an entry w/o a link
> is created, here the entire module isn't present.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)