Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
2.0, 2.0.1, 2.0.2
-
None
-
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
- relates to
-
MNG-1797 Dependency excludes apply to every subsequent dependency, not just the one it is declared under.
- Closed