Uploaded image for project: 'Maven Eclipse Plugin (RETIRED)'
  1. Maven Eclipse Plugin (RETIRED)
  2. MECLIPSE-368

Dependency configuration in DependencyManagement with exclusions is ignored

    XMLWordPrintableJSON

Details

    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.

      Attachments

        1. exclusion-example-20080116.zip
          3 kB
          Jannik Hansen
        2. MECLIPSE-368.patch
          9 kB
          Espen Wiborg

        Issue Links

          Activity

            People

              aheritier Arnaud Heritier
              jh Jannik Hansen
              Votes:
              5 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: