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

[regression] Dependency exclusions are applied globally

    XMLWordPrintableJSON

Details

    Description

      Scenario:

      <dependencies>
        <dependency>
          <groupId>org.apache.maven.its.mng4180</groupId>
          <artifactId>a</artifactId>
          <version>0.1</version>
          <exclusions>
            <exclusion>
              <groupId>org.apache.maven.its.mng4180</groupId>
              <artifactId>b</artifactId>
            </exclusion>
          </exclusions>
        </dependency>
        <dependency>
          <groupId>org.apache.maven.its.mng4180</groupId>
          <artifactId>c</artifactId>
          <version>0.1</version>
        </dependency>
      </dependencies>
      

      If b is a transitive dependency of c, the exclusion defined in a will also affect c, i.e. the class path would miss b although it's not excluded on c.

      Attachments

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              bentmann Benjamin Bentmann
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: