0
嵌套依賴我有這種依賴關係樹:如何排除在行家
[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:罐子: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>
並沒有什麼變化。我想排除的神器仍然存在。任何人都可以幫助我如何使它工作?