Uploaded image for project: 'Maven Ant Tasks (RETIRED)'
  1. Maven Ant Tasks (RETIRED)
  2. MANTTASKS-134

Exclusions in dependencies should not exclude a direct dependency

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 2.0, 2.0.1, 2.0.2
    • None
    • dependencies task
    • None
    • Any (tested on windows)

    Description

      Here's the situation: My pom declares a dependency on artifact B, but excludes the transitive dependency on C. This same pom also directly depends on C. When getting the dependencies, C does not show up in the list, even though it is a direct dependency. Here is the relevant section of the pom:

      <project ...>
      <dependencies>
      <dependency>
      <groupId>groupB</groupId>
      <artifactId>artifactB</artifactId>
      <exclusions>
      <exclusion>
      <groupId>groupC</groupId>
      <artifactId>artifactC</artifactId>
      </exclusion>
      </exclusions>
      </dependency>
      <dependency>
      <groupId>groupC</groupId>
      <artifactId>artifactC</artifactId>
      </dependency>
      </dependencies>
      </project>

      Then using that ant task:
      <artifact:dependencies
      pomrefid="maven.project"
      pathId="compile.classpath"
      verbose="true"
      useScope="compile" />

      Attachments

        Issue Links

          Activity

            People

              carlos Carlos Sanchez Gonzalez
              bbrouwer Bruce Brouwer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: