Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5477

"malformed POM" warning issued when no version in reporting section

    Details

      Description

      When "mvn site" is run on the project attached Maven twice complains that "'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-project-info-reports-plugin is missing", while the documentation on http://maven.apache.org/plugins/maven-site-plugin/maven-3.html clearly states that "When used with Maven 3, a report plugin version can be empty (like build plugins)."

      The plugin version actually used seems to be the one specified in the pluginManagement section of the parent POM, though.

      1. mvn-site.zip
        1 kB
        Wolf Geldmacher

        Issue Links

          Activity

          Hide
          joerg.sesterhenn Jörg Sesterhenn added a comment -

          Can you tell me if there is any chance that the fix for pluginManagement that was applied in Maven 3.1.0-alpha-1 will we patched to Maven 3.0.x?
          I need a stable Maven Version where reporting works. 3.1.0 is still not compatible with a lot of plugins we require...

          Show
          joerg.sesterhenn Jörg Sesterhenn added a comment - Can you tell me if there is any chance that the fix for pluginManagement that was applied in Maven 3.1.0-alpha-1 will we patched to Maven 3.0.x? I need a stable Maven Version where reporting works. 3.1.0 is still not compatible with a lot of plugins we require...
          Hide
          hboutemy Hervé Boutemy added a comment -

          done in 4db66fd0

          Show
          hboutemy Hervé Boutemy added a comment - done in 4db66fd0
          Hide
          hboutemy Hervé Boutemy added a comment -

          unit test added in ed1501ec

          Show
          hboutemy Hervé Boutemy added a comment - unit test added in ed1501ec
          Hide
          hboutemy Hervé Boutemy added a comment -

          removed a warning about reporting section being deprecated in 7d359445, before we're hit by this one too, because we're not ready to deprecate it for the moment: see MSITE-484

          Show
          hboutemy Hervé Boutemy added a comment - removed a warning about reporting section being deprecated in 7d359445 , before we're hit by this one too, because we're not ready to deprecate it for the moment: see MSITE-484
          Hide
          pbodnar Petr Bodnar added a comment -

          Hopefully this gets fixed as soon as possible because now you get quite a lot of warnings (depending on how many reporting plugins you use) which in fact shouldn't be there because they are misleading. As stated in the description: "The plugin version actually used seems to be the one specified in the pluginManagement section of the parent POM."

          Yes, there is a workaround, repeating the plugin version in the <reporting> section, but getting rid of this DRY principle violation is exactly one of the main reasons why many users made the switch to Maven 3. So maybe reconsider the bug priority?

          Show
          pbodnar Petr Bodnar added a comment - Hopefully this gets fixed as soon as possible because now you get quite a lot of warnings (depending on how many reporting plugins you use) which in fact shouldn't be there because they are misleading . As stated in the description: "The plugin version actually used seems to be the one specified in the pluginManagement section of the parent POM." Yes, there is a workaround, repeating the plugin version in the <reporting> section, but getting rid of this DRY principle violation is exactly one of the main reasons why many users made the switch to Maven 3. So maybe reconsider the bug priority?
          Hide
          hboutemy Hervé Boutemy added a comment -

          validation happens in DefaultModelValidator

          Show
          hboutemy Hervé Boutemy added a comment - validation happens in DefaultModelValidator

            People

            • Assignee:
              hboutemy Hervé Boutemy
              Reporter:
              wjg Wolf Geldmacher
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development