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.x Eclipse Plugin
  • MECLIPSE-368

Dependency configuration in DependencyManagement with exclusions is ignored

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 2.4
  • Fix Version/s: 2.8
  • Component/s: Core : Dependencies resolution and build path (.classpath)
  • Labels:
    None
  • Environment:
    Ubuntu Linux 7.10

Description

A transitive dependency which is defined in the DependencyManagement section with exclusions does not take these exclusions into account when generating an eclipse classpath.

Example:

  • childProject has a dependency 'acegi-security-tiger'
  • parentProject has a dependencyManagement section that defines the version and the exclusions
  • acegi-security-tiger has a transitive dependency to acegi-security
  • parentProject has defined acegi-security and a number of exclusions one of which is spring-remoting 1.2.7
  • childProject's classpath ends up with spring-remoting 1.2.7 as dependency
  • we are using spring 2.5.1 which does not have spring-remoting

If I check dependencies with dependency:tree -Dscope=null the dependency resolving of acegi-security-tiger stops with acegi-security and no other transitive dependencies are added (all are excluded)

Workaround is to add acegi-security in childProject's pom.

Main concern here is that dependency resolution in the eclipse plugin seems to be different from the dependency plugin.

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

Attachments

  1. Hide
    Zip Archive
    exclusion-example-20080116.zip
    16/Jan/08 4:13 AM
    3 kB
    jh
    1. XML File
      parentproject/pom.xml 5 kB
    2. XML File
      parentproject/childproject/pom.xml 0.6 kB
    Download Zip
    Show
    Zip Archive
    exclusion-example-20080116.zip
    16/Jan/08 4:13 AM
    3 kB
    jh
  2. Text File
    MECLIPSE-368.patch
    13/Jun/08 3:19 AM
    9 kB
    Espen Wiborg

Issue Links

duplicates

Bug - A problem which impairs or prevents the functions of the product. MECLIPSE-603 Exclusions are not applied on transitive dependencies

  • 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
jh added a comment - 16/Jan/08 4:13 AM - edited

Added Testcase in attachement file.

run mvn eclipse:eclipse to see all dependencies getting added to classpath
run dependency:tree -Dscope=null to see actual dependencies (only acegi)

Show
jh added a comment - 16/Jan/08 4:13 AM - edited Added Testcase in attachement file. run mvn eclipse:eclipse to see all dependencies getting added to classpath run dependency:tree -Dscope=null to see actual dependencies (only acegi)
Hide
Permalink
Espen Wiborg added a comment - 13/Jun/08 3:18 AM

Fixed with the attached patch

Show
Espen Wiborg added a comment - 13/Jun/08 3:18 AM Fixed with the attached patch
Hide
Permalink
Espen Wiborg added a comment - 13/Jun/08 3:19 AM

Patch for this issue, with test.

Show
Espen Wiborg added a comment - 13/Jun/08 3:19 AM Patch for this issue, with test.
Hide
Permalink
Henri Tremblay added a comment - 06/Apr/09 10:44 AM

Any news on this one?

It is really annoying and there's a patch and test case attached. I would have expect it sooner

Show
Henri Tremblay added a comment - 06/Apr/09 10:44 AM Any news on this one? It is really annoying and there's a patch and test case attached. I would have expect it sooner
Hide
Permalink
Stephane Landelle added a comment - 26/Sep/09 6:23 AM

Duplicate of MECLIPSE-603. Can be closed.

Show
Stephane Landelle added a comment - 26/Sep/09 6:23 AM Duplicate of MECLIPSE-603. Can be closed.

People

  • Assignee:
    Arnaud Heritier
    Reporter:
    jh
Vote (5)
Watch (6)

Dates

  • Created:
    16/Jan/08 3:50 AM
    Updated:
    26/Sep/09 6:36 PM
    Resolved:
    26/Sep/09 6:36 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.