Maven
  1. Maven
  2. MNG-1977

Global dependency exclusions

    Details

    • Complexity:
      Intermediate
    • Number of attachments :
      4

      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.

      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

          Hide
          Christoph Henrici added a comment - - edited

          A real world problem needs a solution. Is there any real intention to adress this?

          Show
          Christoph Henrici added a comment - - edited A real world problem needs a solution. Is there any real intention to adress this?
          Hide
          Kees de Kooter added a comment -

          8 years, 155 votes, 5 duplicates and 4 patches later I wonder: should I be proud or embarrassed that the issue is still unresolved?

          Show
          Kees de Kooter added a comment - 8 years, 155 votes, 5 duplicates and 4 patches later I wonder: should I be proud or embarrassed that the issue is still unresolved?
          Hide
          Oliver Siegmar added a comment -

          This issue and MNG-624 (which is even older) are two reasons why I switched to Gradle.

          Show
          Oliver Siegmar added a comment - This issue and MNG-624 (which is even older) are two reasons why I switched to Gradle.
          Hide
          Radai Rosenblatt added a comment -

          i just lost 2 days peppering my poms with individual exclusions. can we please have this feature?

          Show
          Radai Rosenblatt added a comment - i just lost 2 days peppering my poms with individual exclusions. can we please have this feature?
          Hide
          Daniel Wu added a comment -

          It has been always a problem for anyone who hates common loggings
          Really, this is a MUST-HAVE.

          Show
          Daniel Wu added a comment - It has been always a problem for anyone who hates common loggings Really, this is a MUST-HAVE.

            People

            • Assignee:
              Unassigned
              Reporter:
              Kees de Kooter
            • Votes:
              166 Vote for this issue
              Watchers:
              115 Start watching this issue

              Dates

              • Created:
                Updated: