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