我使用Maven 3.0.5的一部分,在pom.xml中,我有以下Maven的排斥罐子還是戰爭文件
<dependency>
<groupId>antlr</groupId>
<artifactId>antlr</artifactId>
<version>2.7.7</version>
<scope>runtime</scope>
<exclusions>
<exclusion>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
</exclusion>
<exclusion>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</exclusion>
<exclusion>
<groupId>janino</groupId>
<artifactId>janino</artifactId>
</exclusion>
</exclusions>
</dependency>
當我建立使用mvn install
戰爭中,我可以看到,在戰爭文件xml-apis-1.0.b2.jar
也包括在內,儘管我已將xml-apis
列入排除列表。
爲什麼在排除中提到的artifactId是war文件的一部分?
我怎樣才能確保xml-apis-1.0.b2.jar
不是戰爭文件的一部分?
任何幫助是非常可觀的。
它可能通過一些其他的依賴包括在內? – Thilo
@Thilo找出除了單獨註釋外還有哪些其他依賴項導致問題的最佳方法是什麼? – user75ponic
如果您使用的是Eclipse,您可以查看依賴關係樹(POM編輯器上的選項卡)。 – Thilo