[ 
https://jira.codehaus.org/browse/MSITE-653?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Herve Boutemy closed MSITE-653.
-------------------------------

    Resolution: Duplicate
      Assignee: Herve Boutemy

duplicate of MSITE-484

explanations have been improved in MSITE-647: just don't use the new 
reportPlugins format for the moment, since it is less flexible than usual 
reporting section (yes, in this case, "new" != "better")
                
> Wrong report set inherited from super POM
> -----------------------------------------
>
>                 Key: MSITE-653
>                 URL: https://jira.codehaus.org/browse/MSITE-653
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 3.1
>         Environment: JDK 7u7, Windows Vista
>            Reporter: Christian Schlichtherle
>            Assignee: Herve Boutemy
>
> I have a parent POM with the coordinates:
> {code}net.java.truecommons:truecommons-parent:13{code}
> In it's project/build/pluginManagement/plugins element, I effectively have:
> {code}
>                 <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>
> {code}
> Now I inherit from this parent POM. In the 
> project/build/pluginManagement/plugins element of my child POM I have:
> {code}
>                 <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>
> {code}
> However, when running help:effective-pom I get:
> {code}
>         <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>
> {code}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to