Maven POMs
  1. Maven POMs
  2. MPOM-32

Apache POM 10 forces all child projects to generate the project info reports

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: ASF-10, ASF-11, ASF-12
    • Fix Version/s: ASF-13
    • Component/s: asf
    • Labels:
      None

      Description

      One of the changes between ASF-9 and ASF-10 was to configure maven-project-info-reports-plugin with a full set of reports.

      This means that all inheriting projects now get the full set of reports, whether they want them or not.

      Note that this feature is not documented on the overview page [1]

      The other changes in 10 seem benign.

      [1] http://maven.apache.org/pom/asf/

      1. MPOM-32-2.xml
        2 kB
        Sebb
      2. MPOM-32-1.xml
        2 kB
        Sebb

        Activity

        Hide
        Hudson added a comment -

        Integrated in ASF Parent Pom #62 (See https://builds.apache.org/job/ASF%20Parent%20Pom/62/)
        MPOM-32 Apache POM 10 forces all child projects to generate the project info reports (Revision 1429896)

        Result = SUCCESS
        olamy : http://svn.apache.org/viewvc/?view=rev&rev=1429896
        Files :

        • /maven/pom/trunk/asf/pom.xml
        Show
        Hudson added a comment - Integrated in ASF Parent Pom #62 (See https://builds.apache.org/job/ASF%20Parent%20Pom/62/ ) MPOM-32 Apache POM 10 forces all child projects to generate the project info reports (Revision 1429896) Result = SUCCESS olamy : http://svn.apache.org/viewvc/?view=rev&rev=1429896 Files : /maven/pom/trunk/asf/pom.xml
        Show
        Olivier Lamy (*$^¨%`£) added a comment - fixed http://svn.apache.org/r1429896
        Hide
        Sebb added a comment -

        Please remove the list of reports from the pom; it is unnecessary and breaks Maven 2.x builds.

        Show
        Sebb added a comment - Please remove the list of reports from the pom; it is unnecessary and breaks Maven 2.x builds.
        Hide
        Sebb added a comment -

        As far as I can see, adding the report list to the Apache pom has no benefit.

        There several disadvantages:

        • Maven 2.x projects cannot override the list
        • poms which derive from Apache have to remember to disable inheritance in order to change the set of reports.
        • the behaviour of projects that update from v9 to v10 is changed (and this is not documented)
        Show
        Sebb added a comment - As far as I can see, adding the report list to the Apache pom has no benefit. There several disadvantages: Maven 2.x projects cannot override the list poms which derive from Apache have to remember to disable inheritance in order to change the set of reports. the behaviour of projects that update from v9 to v10 is changed (and this is not documented)
        Hide
        Hervé Boutemy added a comment -

        AFAIK, the bug is in Maven Core: see https://jira.codehaus.org/browse/MNG-5155

        Show
        Hervé Boutemy added a comment - AFAIK, the bug is in Maven Core: see https://jira.codehaus.org/browse/MNG-5155
        Hide
        Sebb added a comment -

        See attached sample POMs.

        Both attempt to change the list of generated reports; neither has any effect.

        Show
        Sebb added a comment - See attached sample POMs. Both attempt to change the list of generated reports; neither has any effect.
        Hide
        Sebb added a comment - - edited

        In ASF-9, the list of reports was not provided.

        That worked fine; if a child pom did not specify any reports, all of them were generated.
        And if the child specified just some of the reports, just those were generated.

        However, with ASF-10, all the reports are always generated - it does not appear to be possible to override the set of reports.

        I tried using <inherited>false</inherited> as per [1] but that does not work.

        [1]http://maven.apache.org/guides/mini/guide-configuring-plugins.html#Using_the_inherited_Tag_In_Reporting_Plugins

        Show
        Sebb added a comment - - edited In ASF-9, the list of reports was not provided. That worked fine; if a child pom did not specify any reports, all of them were generated. And if the child specified just some of the reports, just those were generated. However, with ASF-10, all the reports are always generated - it does not appear to be possible to override the set of reports. I tried using <inherited>false</inherited> as per [1] but that does not work. [1] http://maven.apache.org/guides/mini/guide-configuring-plugins.html#Using_the_inherited_Tag_In_Reporting_Plugins
        Hide
        Sebb added a comment -

        Furthermore, the "license" report is not supposed to be used on ASF websites: sites should link to the ASF license page instead => http://www.apache.org/licenses/

        Show
        Sebb added a comment - Furthermore, the "license" report is not supposed to be used on ASF websites: sites should link to the ASF license page instead => http://www.apache.org/licenses/
        Hide
        Sebb added a comment -

        PING

        Show
        Sebb added a comment - PING

          People

          • Assignee:
            Olivier Lamy (*$^¨%`£)
            Reporter:
            Sebb
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development