jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2 & 3
  • MNG-3539

Report plugins with inherited=false dropped by profile injector

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 2.0.9
  • Fix Version/s: Issues to be reviewed for 3.x
  • Component/s: Inheritance and Interpolation, Profiles
  • Labels:
    None
  • Complexity:
    Intermediate
  • Testcase included:
    yes

Description

Consider the following POM snippet:

<reporting>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-surefire-report-plugin</artifactId>
      <version>2.3</version>
      <inherited>false</inherited>
    </plugin>
  </plugins>
</reporting>

<profiles>
  <profile>
    <id>extended-site</id>
    <reporting>
      ... some other plugins but excluding the surefire-report-plugin ....
    </reporting>
  </profile>
</profiles>

When running "mvn site -P extended-site", the Surefire Report Plugin will be excluded from the site output.

For some reason, the DefaultProfileInjector is dropping plugins which have inherited=false. Inheritance shouldn't matter here, it's all about the same POM, no parent-child play.

Attached is a unit test to show the failure. An IT will follow now that I have the JIRA ticket.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    MNG-3539.patch
    22/Apr/08 11:42 AM
    8 kB
    Benjamin Bentmann
  2. Text File
    reporting-profile-merge.patch
    22/Apr/08 7:46 AM
    2 kB
    Benjamin Bentmann

Issue Links

relates to

Bug - A problem which impairs or prevents the functions of the product. MNG-3700 ModelUtils.clone doesn't clone plugin entries where inherited == false

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Benjamin Bentmann added a comment - 22/Apr/08 11:42 AM

Failing IT

Show
Benjamin Bentmann added a comment - 22/Apr/08 11:42 AM Failing IT
Hide
Permalink
John Casey added a comment - 14/Aug/08 10:26 AM

promoting for fix in 2.0.11.

Show
John Casey added a comment - 14/Aug/08 10:26 AM promoting for fix in 2.0.11.

People

  • Assignee:
    Unassigned
    Reporter:
    Benjamin Bentmann
Vote (1)
Watch (2)

Dates

  • Created:
    22/Apr/08 7:46 AM
    Updated:
    20/Sep/10 11:12 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.