2

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

[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 是不是忘恩负义?

4

3 回答 3

2

我认为,根据他们CI 服务器的输出,他们的构建当前已损坏,并且自 12 月 15 日以来已损坏。所以你什么也没做,他们只是在他们的仓库中破坏了代码。

您可以在“最后成功的工件”下从他们的 CI 服务器中拉出最后一个成功构建的 jar

于 2013-01-16T20:21:11.590 回答
2

Fest 当前构建非常不稳定,因为 Alex(Fest 创建者)正在进行重大重构。他推动他未完成的工作能够继续工作,因此破坏了构建。我不知道这个重构什么时候完成。

话虽如此,使用 Fest 的常用方法是从 maven 中央仓库获取最新版本(使用 maven、gradle、ivy ....)。

您甚至可以直接从那里的 maven 中央仓库下载 jar ,不过我建议使用可以下载传递依赖项的构建工具。

干杯,

Joel Costigliola(音乐节提交者)

于 2013-01-17T17:13:36.127 回答
0

我只要求一个可下载的 .jar 是不是忘恩负义?

No, it isn't ungrateful to ask for a precompiled binary; but, if you are downloading source code and compiling, then you are picking the wrong item.

Perhaps they didn't release a precompiled binary, in which case I feel for you. Basically this build is obviously broken for reasons that closely resemble "They started changing stuff but didn't finish the job", and you may either attempt to pull from an earlier snapshot of the repository, or fix the "whatever" that they didn't get around to.

Assuming that you don't care about the code, can you find the binaries you seek amongst http://code.google.com/p/fest/downloads/list?

于 2013-01-16T20:31:35.090 回答