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

Report plugins don't inherit configuration

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.9, 2.0.11
    • Fix Version/s: 2.0.11, 2.1.0
    • Component/s: POM
    • Labels:
      None
    • Environment:
      Ubuntu x64
      java version "1.6.0_0"
      OpenJDK Runtime Environment (build 1.6.0_0-b11)
      OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)
    • Flags:
      Patch

      Description

      'm trying to set up reporting plugin inheritance and not having any luck. I'm using Maven 2.0.9 on Java 1.6.0_07. Here is my problem:
      parent/pom.xml has

        <reporting>
          <plugins>
            <plugin>
              <artifactId>maven-javadoc-plugin</artifactId>
              <configuration>
                <silent>true</silent>
                <links>
                  <link>parentLink</link>
                </links>
              </configuration>
            </plugin>
          </plugins>
        </reporting>

      child/pom.xml has

        <reporting>
          <plugins>
            <plugin>
              <artifactId>maven-javadoc-plugin</artifactId>
              <configuration>
                <links combine.children="append">
                  <link>childLink</link>
                </links>
              </configuration>
            </plugin>
          </plugins>
        </reporting>

      After installing the parent, mvn help:effective-pom for the child yeilds:

       <reporting>
          <outputDirectory>target/site</outputDirectory>
          <plugins>
            <plugin>
              <artifactId>maven-javadoc-plugin</artifactId>
              <configuration>
                <links>
                  <link>childLink</link>
                </links>
              </configuration>
            </plugin>
          </plugins>
        </reporting>

      I expected it to look like:

       <reporting>
          <outputDirectory>target/site</outputDirectory>
          <plugins>
            <plugin>
              <artifactId>maven-javadoc-plugin</artifactId>
              <configuration>
                <silent>true</silent>
                <links>
                  <link>parentLink</link>
                  <link>childLink</link>
                </links>
              </configuration>
            </plugin>
          </plugins>
        </reporting>
      

      I'd be happy to make a test case for this if someone would point me in the right direction.

      1. bug.tar.gz
        1 kB
        Nik Everett
      2. MNG-3811-maven-project.patch
        1 kB
        Nik Everett

        Issue Links

          Activity

          Hide
          brettporter Brett Porter added a comment -

          thanks for the patch!

          Show
          brettporter Brett Porter added a comment - thanks for the patch!
          Hide
          brettporter Brett Porter added a comment -

          this appears to have been accidentally wiped out in my fix for MNG-693

          Show
          brettporter Brett Porter added a comment - this appears to have been accidentally wiped out in my fix for MNG-693
          Hide
          paul4christ79 Paul Benedict added a comment -

          I'd like to inherit the UmlGraphDoc doclet from a parent's configuration, but cannot do this bug.

          Show
          paul4christ79 Paul Benedict added a comment - I'd like to inherit the UmlGraphDoc doclet from a parent's configuration, but cannot do this bug.
          Hide
          nik9000@gmail.com Nik Everett added a comment -

          This looks like it fixes the problem.

          Show
          nik9000@gmail.com Nik Everett added a comment - This looks like it fixes the problem.

            People

            • Assignee:
              brettporter Brett Porter
              Reporter:
              nik9000@gmail.com Nik Everett
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development