Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-1977

Global dependency exclusions

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • None
    • FDPFC, POM
    • None

    Description

      I depend on some libraries, which in turn depend on something
      (which in turn depend on something) that I don't want, because I declare
      some other artifact in my pom.xml.

      A concrete example: I don't want that the artifact "xerces" is imported in
      my project because I declare to depend on "xercesImpl" which ships newer
      libraries but with the same namespaces.

      I guess I would need an "exclude transitive dependency at all", either
      globally or from this and that artifact. I saw the <exclusions> tag, but it
      forces me to be very verbose and have exact control on what is required by a
      dependency.

      Attachments

        1. global_excls_it-test_v2.patch
          18 kB
          Jean-Noel Rouvignac
        2. global_excls_it-test_v3.patch
          17 kB
          Jean-Noel Rouvignac
        3. global_excls_maven3_v2.patch
          7 kB
          Jean-Noel Rouvignac
        4. global_excls_maven3_v3.patch
          9 kB
          Jean-Noel Rouvignac

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kdekooter Kees de Kooter
              Votes:
              161 Vote for this issue
              Watchers:
              127 Start watching this issue

              Dates

                Created:
                Updated: