You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2023/03/17 21:52:00 UTC

[jira] [Updated] (DOXIASITETOOLS-293) Remove menu items link in the sidebar to submodule that are not present in the same build (reactor)

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

Michael Osipov updated DOXIASITETOOLS-293:
------------------------------------------
    Description: 
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.

  was:
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)}}.


> 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)