Maven Project Info Reports Plugin
  1. Maven Project Info Reports Plugin
  2. MPIR-182

Make order of reports shown in "Project Reports" configurable

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.7
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      As far as I can tell the plugin's reports are presented in alphabetical order in the "Project Reports" menu. While having "About" come first seems natural, some of the other menu items (in particular, "Source Repository") are placed less than optimally. Why not make this configurable, e.g., by making the order significant in which the report elements occur in the plugin's configuration?

        Issue Links

          Activity

          Hide
          Lukas Theussl added a comment -

          Should be fixed with MSHARED-172

          Show
          Lukas Theussl added a comment - Should be fixed with MSHARED-172
          Hide
          Lukas Theussl added a comment -

          Re-opening as it won't be included in the 2.3.1 bug-fix release

          Show
          Lukas Theussl added a comment - Re-opening as it won't be included in the 2.3.1 bug-fix release
          Hide
          Herve Boutemy added a comment -

          IT added in r1100762 but it doesn't work as expected

          Show
          Herve Boutemy added a comment - IT added in r1100762 but it doesn't work as expected
          Hide
          Lukas Theussl added a comment -

          Running the IT with site plugin 2.3 does not order the reports alphabetically anymore (due to MSHARED-172). However, the order of reports is also not the same as specified in the pom. I checked that the order is already arbitrary in the plexus @parameter expression="$

          {reports}

          " that gets injected in AbstractSiteRenderingMojo, so this seems to come from maven core.

          Show
          Lukas Theussl added a comment - Running the IT with site plugin 2.3 does not order the reports alphabetically anymore (due to MSHARED-172 ). However, the order of reports is also not the same as specified in the pom. I checked that the order is already arbitrary in the plexus @parameter expression="$ {reports} " that gets injected in AbstractSiteRenderingMojo, so this seems to come from maven core.
          Hide
          Philip Maher added a comment -

          I'd like to somehow have the option to tell the plugin to make it alphabetical as I don't want to have to go through all of the pom's and alphabetize the reporting section. I reverted from 2.3 back to 2.2 because of the order of the reports no longer being alphabetical.

          Show
          Philip Maher added a comment - I'd like to somehow have the option to tell the plugin to make it alphabetical as I don't want to have to go through all of the pom's and alphabetize the reporting section. I reverted from 2.3 back to 2.2 because of the order of the reports no longer being alphabetical.
          Hide
          Herve Boutemy added a comment -

          found why it doesn't work with Maven <= 2.2.1: see MNG-5140

          but it should be ok with Maven 3 when MSITE-402 is fixed

          Show
          Herve Boutemy added a comment - found why it doesn't work with Maven <= 2.2.1: see MNG-5140 but it should be ok with Maven 3 when MSITE-402 is fixed
          Hide
          Robert Scholte added a comment -

          IT fixed in r1481402

          Show
          Robert Scholte added a comment - IT fixed in r1481402
          Hide
          Michael Osipov added a comment -

          Please mark MSITE-675 as dup of this issue.

          Show
          Michael Osipov added a comment - Please mark MSITE-675 as dup of this issue.
          Hide
          Gary Gregory added a comment -

          So what do I have to put in the POM to make the order alphabetical?

          Show
          Gary Gregory added a comment - So what do I have to put in the POM to make the order alphabetical?
          Hide
          Michael Osipov added a comment -

          Gary,

          order them in your <reportSet> element.

          Show
          Michael Osipov added a comment - Gary, order them in your <reportSet> element.
          Hide
          Michael Osipov added a comment -

          I cannot say that this issue is really fixed. It works with Maven 3 but not with Maven 2.2.1. I still do experience the not POM-dictated order of project information reports. MNG-5140 claims to have fixed that in 2.2.2 but I have compiled 2.2.2-RC1 and still no avail.

          Test project available.

          Show
          Michael Osipov added a comment - I cannot say that this issue is really fixed. It works with Maven 3 but not with Maven 2.2.1. I still do experience the not POM-dictated order of project information reports. MNG-5140 claims to have fixed that in 2.2.2 but I have compiled 2.2.2-RC1 and still no avail. Test project available.
          Hide
          Michael Osipov added a comment -

          Closing since Maven 2.x is EOL and this works in Maven 3.x.

          Show
          Michael Osipov added a comment - Closing since Maven 2.x is EOL and this works in Maven 3.x.

            People

            • Assignee:
              Robert Scholte
              Reporter:
              Andreas Sewe
            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: