Uploaded image for project: 'Maven Site Plugin'
  1. Maven Site Plugin
  2. MSITE-653

Wrong report set inherited from super POM

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.1
    • None
    • None
    • None
    • JDK 7u7, Windows Vista

    Description

      I have a parent POM with the coordinates:

      net.java.truecommons:truecommons-parent:13

      In it's project/build/pluginManagement/plugins element, I effectively have:

                      <plugin>
                          <artifactId>maven-site-plugin</artifactId>
                          <version>3.1</version>
                          <configuration>
                              <reportPlugins>
                                  <plugin>
                                      <artifactId>maven-project-info-reports-plugin</artifactId>
                                  </plugin>
                                  <plugin>
                                      <artifactId>maven-javadoc-plugin</artifactId>
                                      <reports>
                                          <report>aggregate</report>
                                          <report>javadoc</report>
                                      </reports>
                                  </plugin>
                                  <plugin>
                                      <artifactId>maven-jxr-plugin</artifactId>
                                      <reports>
                                          <report>aggregate</report>
                                          <report>jxr</report>
                                      </reports>
                                  </plugin>
                                  <plugin>
                                      <groupId>org.codehaus.mojo</groupId>
                                      <artifactId>findbugs-maven-plugin</artifactId>
                                  </plugin>
                                  <plugin>
                                      <groupId>org.codehaus.mojo</groupId>
                                      <artifactId>jdepend-maven-plugin</artifactId>
                                  </plugin>
                              </reportPlugins>
                          </configuration>
                      </plugin>
      

      Now I inherit from this parent POM. In the project/build/pluginManagement/plugins element of my child POM I have:

                      <plugin>
                          <artifactId>maven-site-plugin</artifactId>
                          <configuration>
                              <reportPlugins>
                                  <plugin>
                                      <artifactId>maven-project-info-reports-plugin</artifactId>
                                  </plugin>
                                  <plugin>
                                      <groupId>org.codehaus.mojo</groupId>
                                      <artifactId>findbugs-maven-plugin</artifactId>
                                  </plugin>
                                  <plugin>
                                      <groupId>org.codehaus.mojo</groupId>
                                      <artifactId>jdepend-maven-plugin</artifactId>
                                  </plugin>
                              </reportPlugins>
                          </configuration>
                      </plugin>
      

      However, when running help:effective-pom I get:

              <plugin>
                <artifactId>maven-site-plugin</artifactId>
                <version>3.1</version>
                <configuration>
                  <reportPlugins>
                    <plugin>
                      <artifactId>maven-project-info-reports-plugin</artifactId>
                    </plugin>
                    <plugin>
                      <groupId>org.codehaus.mojo</groupId>
                      <artifactId>findbugs-maven-plugin</artifactId>
                      <reports>
                        <report>aggregate</report>
                        <report>javadoc</report>
                      </reports>
                    </plugin>
                    <plugin>
                      <groupId>org.codehaus.mojo</groupId>
                      <artifactId>jdepend-maven-plugin</artifactId>
                      <reports>
                        <report>aggregate</report>
                        <report>jxr</report>
                      </reports>
                    </plugin>
                  </reportPlugins>
                </configuration>
              </plugin>
      

      Note the reports elements! Apparently they have been inherited from the javadoc and jxr report plugins of the parent POM. However, they do not belong into the findbugs and jdepend report plugins of the child POM.

      Attachments

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              christians Christian Schlichtherle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: