You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Christian Schulte (JIRA)" <ji...@codehaus.org> on 2011/08/13 15:34:42 UTC

[jira] Created: (MNG-5155) 'inherited' flag of report sets ignored.

'inherited' flag of report sets ignored.
----------------------------------------

                 Key: MNG-5155
                 URL: https://jira.codehaus.org/browse/MNG-5155
             Project: Maven 2 & 3
          Issue Type: Bug
          Components: Inheritance and Interpolation
    Affects Versions: 3.0.3
            Reporter: Christian Schulte


Defining a report plugin in a parent pom like

{code:xml}
<reporting>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-javadoc-plugin</artifactId>
      <reportSets>
        <reportSet>
          <id>javadoc</id>
          <reports>
            <report>javadoc</report>
            <report>test-javadoc</report>
          </reports>
        </reportSet>
        <reportSet>
          <id>aggregate</id>
          <inherited>false</inherited>
          <reports>
            <report>aggregate</report>
            <report>test-aggregate</report>
          </reports>
        </reportSet>
      </reportSets>
    </plugin>
  </plugins>
</reporting>
{code}

the report set with id 'aggregate' will appear in the effective model of child modules although the 'inherited' flag is set to false.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MNG-5155) 'inherited' flag of report sets ignored.

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MNG-5155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann updated MNG-5155:
-----------------------------------

    Attachment: MNG-5155.patch

Proper patch.

> 'inherited' flag of report sets ignored.
> ----------------------------------------
>
>                 Key: MNG-5155
>                 URL: https://jira.codehaus.org/browse/MNG-5155
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Inheritance and Interpolation
>    Affects Versions: 3.0.3
>            Reporter: Christian Schulte
>            Assignee: Olivier Lamy
>             Fix For: 3.0.4
>
>         Attachments: MNG-5155.patch, MNG-5155.patch, MNG-5155.zip
>
>
> Defining a report plugin in a parent pom like
> {code:xml}
> <reporting>
>   <plugins>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-javadoc-plugin</artifactId>
>       <reportSets>
>         <reportSet>
>           <id>javadoc</id>
>           <reports>
>             <report>javadoc</report>
>             <report>test-javadoc</report>
>           </reports>
>         </reportSet>
>         <reportSet>
>           <id>aggregate</id>
>           <inherited>false</inherited>
>           <reports>
>             <report>aggregate</report>
>             <report>test-aggregate</report>
>           </reports>
>         </reportSet>
>       </reportSets>
>     </plugin>
>   </plugins>
> </reporting>
> {code}
> the report set with id 'aggregate' will appear in the effective model of child modules although the 'inherited' flag is set to false.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MNG-5155) 'inherited' flag of report sets ignored.

Posted by "Christian Schulte (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MNG-5155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Schulte updated MNG-5155:
-----------------------------------

    Attachment: MNG-5155.zip

Example project demonstrating the issue. Executing 'mvn help:effective-pom' the report set with id 'aggregate' is inherited to the 'module-a' model.

> 'inherited' flag of report sets ignored.
> ----------------------------------------
>
>                 Key: MNG-5155
>                 URL: https://jira.codehaus.org/browse/MNG-5155
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Inheritance and Interpolation
>    Affects Versions: 3.0.3
>            Reporter: Christian Schulte
>         Attachments: MNG-5155.zip
>
>
> Defining a report plugin in a parent pom like
> {code:xml}
> <reporting>
>   <plugins>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-javadoc-plugin</artifactId>
>       <reportSets>
>         <reportSet>
>           <id>javadoc</id>
>           <reports>
>             <report>javadoc</report>
>             <report>test-javadoc</report>
>           </reports>
>         </reportSet>
>         <reportSet>
>           <id>aggregate</id>
>           <inherited>false</inherited>
>           <reports>
>             <report>aggregate</report>
>             <report>test-aggregate</report>
>           </reports>
>         </reportSet>
>       </reportSets>
>     </plugin>
>   </plugins>
> </reporting>
> {code}
> the report set with id 'aggregate' will appear in the effective model of child modules although the 'inherited' flag is set to false.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MNG-5155) 'inherited' flag of report sets ignored.

Posted by "Christian Schulte (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MNG-5155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Schulte updated MNG-5155:
-----------------------------------

    Attachment: MNG-5155.patch

Applying this patch, the report set with id 'aggregate' no longer is inherited.

> 'inherited' flag of report sets ignored.
> ----------------------------------------
>
>                 Key: MNG-5155
>                 URL: https://jira.codehaus.org/browse/MNG-5155
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Inheritance and Interpolation
>    Affects Versions: 3.0.3
>            Reporter: Christian Schulte
>         Attachments: MNG-5155.patch, MNG-5155.zip
>
>
> Defining a report plugin in a parent pom like
> {code:xml}
> <reporting>
>   <plugins>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-javadoc-plugin</artifactId>
>       <reportSets>
>         <reportSet>
>           <id>javadoc</id>
>           <reports>
>             <report>javadoc</report>
>             <report>test-javadoc</report>
>           </reports>
>         </reportSet>
>         <reportSet>
>           <id>aggregate</id>
>           <inherited>false</inherited>
>           <reports>
>             <report>aggregate</report>
>             <report>test-aggregate</report>
>           </reports>
>         </reportSet>
>       </reportSets>
>     </plugin>
>   </plugins>
> </reporting>
> {code}
> the report set with id 'aggregate' will appear in the effective model of child modules although the 'inherited' flag is set to false.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MNG-5155) 'inherited' flag of report sets ignored.

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MNG-5155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy updated MNG-5155:
------------------------------

    Fix Version/s: 3.0.4

> 'inherited' flag of report sets ignored.
> ----------------------------------------
>
>                 Key: MNG-5155
>                 URL: https://jira.codehaus.org/browse/MNG-5155
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Inheritance and Interpolation
>    Affects Versions: 3.0.3
>            Reporter: Christian Schulte
>            Assignee: Olivier Lamy
>             Fix For: 3.0.4
>
>         Attachments: MNG-5155.patch, MNG-5155.zip
>
>
> Defining a report plugin in a parent pom like
> {code:xml}
> <reporting>
>   <plugins>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-javadoc-plugin</artifactId>
>       <reportSets>
>         <reportSet>
>           <id>javadoc</id>
>           <reports>
>             <report>javadoc</report>
>             <report>test-javadoc</report>
>           </reports>
>         </reportSet>
>         <reportSet>
>           <id>aggregate</id>
>           <inherited>false</inherited>
>           <reports>
>             <report>aggregate</report>
>             <report>test-aggregate</report>
>           </reports>
>         </reportSet>
>       </reportSets>
>     </plugin>
>   </plugins>
> </reporting>
> {code}
> the report set with id 'aggregate' will appear in the effective model of child modules although the 'inherited' flag is set to false.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MNG-5155) 'inherited' flag of report sets ignored.

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MNG-5155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MNG-5155.
----------------------------------

    Resolution: Fixed
      Assignee: Benjamin Bentmann  (was: Olivier Lamy)

Fixed in [r1159625|http://svn.apache.org/viewvc?view=revision&revision=1159625].

> 'inherited' flag of report sets ignored.
> ----------------------------------------
>
>                 Key: MNG-5155
>                 URL: https://jira.codehaus.org/browse/MNG-5155
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Inheritance and Interpolation
>    Affects Versions: 3.0.3
>            Reporter: Christian Schulte
>            Assignee: Benjamin Bentmann
>             Fix For: 3.0.4
>
>         Attachments: MNG-5155.patch, MNG-5155.patch, MNG-5155.zip
>
>
> Defining a report plugin in a parent pom like
> {code:xml}
> <reporting>
>   <plugins>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-javadoc-plugin</artifactId>
>       <reportSets>
>         <reportSet>
>           <id>javadoc</id>
>           <reports>
>             <report>javadoc</report>
>             <report>test-javadoc</report>
>           </reports>
>         </reportSet>
>         <reportSet>
>           <id>aggregate</id>
>           <inherited>false</inherited>
>           <reports>
>             <report>aggregate</report>
>             <report>test-aggregate</report>
>           </reports>
>         </reportSet>
>       </reportSets>
>     </plugin>
>   </plugins>
> </reporting>
> {code}
> the report set with id 'aggregate' will appear in the effective model of child modules although the 'inherited' flag is set to false.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-5155) 'inherited' flag of report sets ignored.

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MNG-5155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=277374#comment-277374 ] 

Herve Boutemy commented on MNG-5155:
------------------------------------

unit test added in [r1163244|http://svn.apache.org/viewvc?rev=1163244&view=rev]

> 'inherited' flag of report sets ignored.
> ----------------------------------------
>
>                 Key: MNG-5155
>                 URL: https://jira.codehaus.org/browse/MNG-5155
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Inheritance and Interpolation
>    Affects Versions: 3.0.3
>            Reporter: Christian Schulte
>            Assignee: Benjamin Bentmann
>             Fix For: 3.0.4
>
>         Attachments: MNG-5155.patch, MNG-5155.patch, MNG-5155.zip
>
>
> Defining a report plugin in a parent pom like
> {code:xml}
> <reporting>
>   <plugins>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-javadoc-plugin</artifactId>
>       <reportSets>
>         <reportSet>
>           <id>javadoc</id>
>           <reports>
>             <report>javadoc</report>
>             <report>test-javadoc</report>
>           </reports>
>         </reportSet>
>         <reportSet>
>           <id>aggregate</id>
>           <inherited>false</inherited>
>           <reports>
>             <report>aggregate</report>
>             <report>test-aggregate</report>
>           </reports>
>         </reportSet>
>       </reportSets>
>     </plugin>
>   </plugins>
> </reporting>
> {code}
> the report set with id 'aggregate' will appear in the effective model of child modules although the 'inherited' flag is set to false.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira