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

Extend site descriptor to enforce a parent

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-M19
    • 2.0.0
    • Site model
    • None

    Description

      Currently the site descriptor does not allow to enforce a parent site.xml.
      The attribute combine.self does not lead to a failure in case no parent site.xml can be found.

      This may easily lead to broken sites without breaking the site build as
      a) the site transparently inherits the site.xml attached to the parent POM.
      b) attaching the site.xml to a project is a manual step (https://maven.apache.org/plugins/maven-site-plugin/attach-descriptor-mojo.html)

      As at the time when the descriptor of the derived site.xml is created it is known whether the descriptor works standalone or requires a parent site.xml, therefore this should be made explicit in the site descriptor.
      I propose to add an additional attribute requireParent on the top level element which is false by default (current behaviour). If set to true it should lead to a build failure in case the parent site.xml cannot be resolved (for whatever reason).

      Attachments

        Issue Links

          Activity

            People

              kwin Konrad Windszus
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: