gpt4 book ai didi

java - 使用 Maven 构建 Fest 时出现 ClassNotFound 错误

转载 作者:行者123 更新时间:2023-11-30 07:19:50 25 4
gpt4 key购买 nike

想尝试 fest 2.x 分支。我不熟悉 maven,但我从 github 下载了 fest ,它给了我一个 pom.xml,所以我用 mvn install 运行了 maven,并得到以下内容:

[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building FEST Fluent Assertions (Core) 2.0M9-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ fest-assert-core ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ fest-assert-core ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/sbarnum/Java/fest-assert-2.x-master/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ fest-assert-core ---
[INFO] Compiling 180 source files to /Users/sbarnum/Java/fest-assert-2.x-master/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/sbarnum/Java/fest-assert-2.x-master/src/main/java/org/fest/assertions/internal/Numbers.java:[31,17] cannot find symbol
symbol : class Comparison
location: class org.fest.assertions.internal.Numbers<NUMBER>
[ERROR] /Users/sbarnum/Java/fest-assert-2.x-master/src/main/java/org/fest/assertions/error/ShouldContain.java:[38,6] cannot find symbol
symbol : class Comparison
location: class org.fest.assertions.error.ShouldContain
[ERROR] /Users/sbarnum/Java/fest-assert-2.x-master/src/main/java/org/fest/assertions/error/ShouldContain.java:[53,73] cannot find symbol
symbol : class Comparison
location: class org.fest.assertions.error.ShouldContain

我错过了什么?只要求一个可下载的 .jar 是我忘恩负义吗?

最佳答案

我认为,基于他们的 CI server 的输出,他们的构建目前已损坏,并且自 12 月 15 日起就已损坏。所以你什么也没做,他们只是在他们的 repo 中破坏了代码。

您可以从他们的 CI 服务器中拉出最后成功构建的 jar here ,在“最后成功的 Artifact ”下

关于java - 使用 Maven 构建 Fest 时出现 ClassNotFound 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14366930/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com