【发布时间】:2014-01-22 17:40:09
【问题描述】:
我有这个依赖树:
[INFO] +- org.springframework.ws:org.springframework.ws:jar:2.1.0.RELEASE:compile
[INFO] | +- org.springframework:org.springframework.aop:jar:3.1.1.RELEASE:compile
[INFO] | | \- org.aopalliance:com.springsource.org.aopalliance:jar:1.0.0:compile
[INFO] | +- org.springframework:org.springframework.oxm:jar:3.1.1.RELEASE:compile
[INFO] | \- org.springframework.ws:org.springframework.xml:jar:2.1.0.RELEASE:compile
[INFO] | \- org.apache.ws:com.springsource.org.apache.ws.commons.schema:jar:1.3.2:compile
我想排除(最后一个):
org.apache.ws:com.springsource.org.apache.ws.commons.schema:jar:1.3.2
这是(根据它的pom):
<groupId>org.apache.ws.commons.schema</groupId>
<artifactId>XmlSchema</artifactId>
所以我在根工件(org.springframework.ws)中定义:
<dependency>
<groupId>org.springframework.ws</groupId>
<artifactId>org.springframework.ws</artifactId>
<version>2.1.0.RELEASE</version>
<exclusions>
<exclusion>
<groupId>org.apache.ws.commons.schema</groupId>
<artifactId>XmlSchema</artifactId>
</exclusion>
</exclusions>
</dependency>
并没有真正改变。我想排除的工件仍然存在。任何人都可以帮助我如何使其工作?
【问题讨论】:
标签: java spring maven dependency-management spring-ws