【发布时间】:2020-08-22 23:51:27
【问题描述】:
我正在尝试使用 maven 和 OpenJDK-8 构建 Californium 存储库 (https://github.com/eclipse/californium);按照说明,我克隆了存储库并在目录中使用mvn clean install 来构建 Californium。
在Californium.core 的TEST 阶段,该建筑继续失败,并且尝试使用mvn tree:dependency 也没有帮助。
阅读日志似乎是与surefire 插件相关的错误
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (small-tests) on project californium-core: There are test failures.
[ERROR]
[ERROR] Please refer to $HOME/californium/californium-core/target/surefire-reports for the individual test results.
我在上述目录中读取了错误文件,失败似乎取决于./californium-core/target/surefire-reports/TEST-org.eclipse.californium.core.coap.RequestTest.xml 文件中的特定异常
<testcase name="testSetURIRejectsUnresolvableHost" classname="org.eclipse.californium.core.coap.RequestTest" time="0.022">
<failure message="Expected exception: java.lang.IllegalArgumentException" type="java.lang.AssertionError">java.lang.AssertionError: Expected exception: java.lang.IllegalArgumentException
</failure>
</testcase>
我不明白我是否遗漏了有关 maven 依赖项的内容,或者这不是我的错 提前致谢
【问题讨论】:
标签: java eclipse maven java-8 californium