0

我想从https://github.com/rtyley/spongycastle/archive/spongy-master.zip(SpongeCastle 库)编译和构建一个 jar 文件

但是,当我尝试测试 MVN 时,MVN 显示以下错误(JDK 1.6.0_37、Maven 3.0.4、Mac OSX 雪豹)

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.7.2:test (default-test) on project scpg-jdk15on: There are test failures.
[ERROR] 
[ERROR] Please refer to /Users/Lara/Desktop/BlowFish/spongycastle-spongy-master/scpg-jdk15on/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :scpg-jdk15on

我该如何解决这个错误?

4

2 回答 2

0

正如我在评论中指出的那样,这可能是您的 jdk 版本的问题,但可能是其他问题......

我建议你阅读这个:http ://www.randombugs.com/java/javalangsecurityexception-jce-authenticate-provider-bc.html

我认为它将帮助您识别/解决您的问题。

于 2013-02-01T18:10:41.787 回答
0

看起来有一个名为“default-test”的单元测试失败并阻止 maven 构建 jar。您可以调查并修复测​​试失败的原因,也可以尝试在不运行测试的情况下构建 jar,使用:

 mvn install -DskipTests
于 2013-02-01T17:59:35.400 回答