Uploaded image for project: 'Maven Doxia Sitetools'
  1. Maven Doxia Sitetools
  2. DOXIASITETOOLS-293

Remove menu items link in the sidebar to submodule that are not present in the same build (reactor)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-M5
    • 2.0.0-M6, 2.0.0
    • Integration Tools
    • None

    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.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              michael-o Michael Osipov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: