2013-02-01 57 views
0

我想编译和构建从https://github.com/rtyley/spongycastle/archive/spongy-master.zip一个jar文件(SpongeCastle库)错误而编译Java中使用MVN

然而,当我试图测试MVN,在MVN显示以下错误 (JDK 1.6.0_37, Maven 3.0.4,Mac OSX snowleopard)

[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 

我该如何解决这个错误?

+0

你看过错误信息吗? – ben75

+0

在信息中你还不清楚什么? –

+0

这个神器似乎是用于jdk 1.5的,你使用的是jdk 1.6 ...也许是问题的原因?查看/ Users/Lara/Desktop/BlowFish/spongycastle-spongy-master/scpg-jdk15on/target/surefire-reports – ben75

回答

0

它看起来像是有一个名为“default-test”的单元测试失败,并阻止maven构建jar。您可以检查并修复失败测试的原因,或者你可以尝试建立罐子不使用运行测试:

mvn install -DskipTests