我正在使用Maven2。當我看的mvn dependency:tree -Dverbose
輸出我看到很多:Maven排除最佳做法
[INFO] +- org.springframework:spring-orm:jar:3.0.5.RELEASE:compile
[INFO] | +- (org.springframework:spring-beans:jar:3.0.5.RELEASE:compile - omitted for duplicate)
[INFO] | +- (org.springframework:spring-core:jar:3.0.5.RELEASE:compile - omitted for duplicate)
[INFO] | +- (org.springframework:spring-jdbc:jar:3.0.5.RELEASE:compile - omitted for duplicate)
[INFO] | \- (org.springframework:spring-tx:jar:3.0.5.RELEASE:compile - omitted for duplicate)
所有這些在我的POM作爲一個依賴關係inlcuded爲好。我的問題是,要遵循的政策是什麼,保留它,僅排除版本衝突,或者排除每一個傳遞性依賴。
我看不出在手冊中與此相關的任何東西。
謝謝!
的問題是爲什麼要添加其他依賴你的POM,如果他們已經來作爲傳遞依賴的擔心? – khmarbaise 2011-05-06 10:10:07