【发布时间】:2014-11-26 15:21:55
【问题描述】:
从 github 下载 spring petclinic 示例并在 eclipse 中作为现有 maven 项目打开,它因编译错误而失败。 java版本是1.7.0.51,pom.xml的spring版本是4.1.1.RELEASE。
编译错误是:- 该项目未构建,因为其构建路径不完整。找不到 org.hamcrest.core.CombinableMatcher$CombinableBothMatcher 的类文件。修复构建路径,然后尝试构建此项目
类型 org.hamcrest.core.CombinableMatcher$CombinableBothMatcher 无法解析。它是从所需的 .class 文件中间接引用的
请告诉我您的建议。谢谢
【问题讨论】:
-
听起来项目的 pom 不包含
hamcrest-core或hamcrest-all作为依赖项。可以发一下pom的内容吗?
标签: java eclipse spring maven spring-mvc