【发布时间】:2019-05-12 09:40:45
【问题描述】:
我这里有一个依赖共存:isNotNullValue()方法存在于我的Spring Boot应用程序的不同jar中,这张图显示了我现在得到的:
如你所见,我有:
wiremock.org.hamcrest.core.IsNullwiremock.org.hamcrest.CoreMatchersorg.hamcrest.core.IsNullorg.hamcrest.Matchersorg.hamcrest.CoreMatchers
我应该导入哪个?
我猜hamcrest-library 是正确的罐子,但我不确定。
以下情况应遵循的一些准则:
- 相同的方法同时存在于几个 jar 中,而有些应该被遮蔽但不是(就像在
wiremock.org.hamcrest中一样) - 相同的方法存在于几个具有相同依赖关系的不同jar中,如
hamcrest-core和hamcrest-library
?
【问题讨论】:
标签: spring-boot dependency-management hamcrest