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

Allow wildcards in dependency exclusions

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.2.1
    • Dependencies
    • None

    Description

      I would like to be able to exclude all transitive dependencies from a certain dependencies. This is especially useful when depending on an artifact with a classifier that may not have the same dependencies as the main artifact. Currently the only way to do this is by excluding each dependency individually which requires significant effort and is prone to becoming out of date. The following syntax is one possibility.

      Exclude all transitive dependencies

      <exclusion>
        <groupId>*</groupId>
      </exclusion>
      

      Exclude transitive dependencies with the groupId "org.company"

      <exclusion>
        <groupId>org.company</groupId>
        <artifactId>*</artifactId>
      </exclusion>
      

      Attachments

        1. MNG-3832-maven-artifact.patch
          20 kB
          Tomek Bujok

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              pgier Paul Gier
              Votes:
              75 Vote for this issue
              Watchers:
              48 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: