Uploaded image for project: 'Maven Site Plugin'
  1. Maven Site Plugin
  2. MSITE-438

<menu ref="modules"/> dropped from site.xml for pom.xml without <modules> section

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.1
    • None
    • inheritance, multi module
    • None
    • Windows XP, CentOS Linux, Maven 2.2.1, Sun JDK 1.6.0_u17

    Description

      We have common "pom-parent" artifact that defines repositories, pluginsManagement, distribution, etc. And there is defined the site.xml descriptor too.

      The site.xml lokks like:

        <body>
          <menu ref="parent"/>
          <menu ref="modules"/>
          <menu ref="reports"/>
        </body>

      but when we build this artifact and deploy it to the repository, there is automaticaly generated and uploaded different site descriptor "pom-parent-1.0.0-site.xml" that contains only:

        <body>
          <menu ref="parent" />
          <menu ref="reports" />
        </body>

      The "modules" menu was droped by maven.

      After some investigation I found that the "modules" menu section is always dropped, when the pom.xml for pom-parent does not contains any submodule definition

         <modules>
           <module>some-submodule</module>
         </modules>

      But I don't want to specify any submodule for this common pom because it is used as "abstract" parent for all company projects. We want to have only one central site.xml descriptor definition managed in "pom-parent" project and avoid its duplication in each inherited project.
      The workaround is create some "dummy-submodule" under "pom-parent" and define the <modules> section in pom.xml or define the site.xml descriptor for each inherited project.

      Attachments

        1. project.zip
          2 kB
          Petr Novak

        Issue Links

          Activity

            People

              ltheussl Lukas Theussl
              kek Petr Novak
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: