谁能告诉我 Maven 中的 Hamcrest 依赖有什么问题吗? 很遗憾,我无法在此处附加屏幕截图。
截图来自IntelliJ IDEA
右侧可以看到依赖项 hamcrest-all:1.3 位于依赖项 junit:4.11 内。
也许我的 pom.xml 文件有问题?
hamcrest 1.3 版本也存在问题 - 找不到依赖项 hamcrest:hamcrest-all:1.3。
当我尝试更新 Maven 索引时,没有任何反应。
最佳答案
组 ID 之间存在细微差别。注意maven存储库中的组id是org.hamcrest
http://mvnrepository.com/artifact/org.hamcrest/hamcrest-all/1.3
关于java - Maven 中 Unresolved 依赖关系,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29158219/