Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 2.5.1
-
Fix Version/s: 2.8
-
Labels:None
-
Number of attachments :
Description
I have a parent pom that excludes xml-apis:xml-apis from dom4j:dom4j in the dependencyManagement section. To make certain that as the project development progresses no artifacts depend on xml-apis:xml-apis (it is superseded by org.apache.xerces:xml-apis) I've forced the version of xml-apis:xml-apis in the same dependencyManagement section to be -1. No artifact should depend on it since I'm excluding all dependencies on it manually and adding org.apache.xerces:xml-apis as a manual dependency. In Maven this works fine. When I run maven-eclipse-plugin in a child module of this pom artifact which depends on dom4j:dom4j however, it tries to download xml-apis:xml-apis:jar:-1 and after failing it adds it to the project's classpath configuration (which obviously causes eclipse to throw errors not being able to find xml-apis:xml-apis:jar:-1 in my local repository.
<dependencyManagement>
<dependencies>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>${dom4j.version}</version>
<excludes>
<exclude>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</exclude>
</excludes>
</dependency>
<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
<version>-1</version>
</dependency>
</dependencies>
</dependencyManagement>
Issue Links
| This issue duplicates: | ||||
| MECLIPSE-603 | Exclusions are not applied on transitive dependencies |
|
|
|
| This issue is related to: | ||||
| MECLIPSE-472 | Bad dependencies (version & list) in .classpath whereas compilation (and dependency:tree) use the rigth one |
|
|
|
probably related ....