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-4180

[regression] Dependency exclusions are applied globally

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 3.0-alpha-3
  • Fix Version/s: 3.0-alpha-3
  • Component/s: Artifacts and Repositories
  • Labels:
    None
  • Complexity:
    Intermediate

Description

Scenario:

<dependencies>
  <dependency>
    <groupId>org.apache.maven.its.mng4180</groupId>
    <artifactId>a</artifactId>
    <version>0.1</version>
    <exclusions>
      <exclusion>
        <groupId>org.apache.maven.its.mng4180</groupId>
        <artifactId>b</artifactId>
      </exclusion>
    </exclusions>
  </dependency>
  <dependency>
    <groupId>org.apache.maven.its.mng4180</groupId>
    <artifactId>c</artifactId>
    <version>0.1</version>
  </dependency>
</dependencies>

If b is a transitive dependency of c, the exclusion defined in a will also affect c, i.e. the class path would miss b although it's not excluded on c.

Issue Links

is related to

Bug - A problem which impairs or prevents the functions of the product. MNG-1797 Dependency excludes apply to every subsequent dependency, not just the one it is declared under.

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

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Benjamin Bentmann added a comment - 12/Jun/09 5:17 PM

Fixed in r784296.

Show
Benjamin Bentmann added a comment - 12/Jun/09 5:17 PM Fixed in r784296.

People

  • Assignee:
    Benjamin Bentmann
    Reporter:
    Benjamin Bentmann
Vote (0)
Watch (0)

Dates

  • Created:
    30/May/09 6:39 AM
    Updated:
    12/Jun/09 5:17 PM
    Resolved:
    12/Jun/09 5:17 PM
  • 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.