2014-12-09 77 views
0

我有我目前工作的一个Spring MVC的项目。一切看起来不错,我不会错过任何jar文件。在“MVN全新安装”我得到下面的错误。Maven的万无一失 - 清洁测试失败安装

到目前为止,我已经尝试了所有其他的建议,我像类似主题的发现:“MVN依赖::树”这样我就可以检查,如果我错过任何资源库,但没有结果。 对于某些人,它看起来像“MVN全新安装-U”是解决办法,但不是在我的情况下,得到了同样的错误。

[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 01:17 min 
[INFO] Finished at: 2014-12-09T11:46:34+00:00 
[INFO] Final Memory: 23M/226M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2. 
12.4:test (default-test) on project am: There are test failures. 
[ERROR] 
[ERROR] Please refer to C:\Users\ADMIN\Documents\Code Base\Removable Disk\am 
\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 swit 
ch. 
[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 rea 
d the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc 
eption 
C:\Users\ADMIN\Documents\Code Base\Removable Disk\am> 

回答

1

一个或多个测试失败。你有两个选择

  1. 修复这些测试用例并尝试。

  2. 运行mvn clean install -Dmaven.test.skip。该命令将跳过测试阶段。

+0

我试过了,它会跳过确实的测试部分,但我现在正在接受另一个错误。运行(package-frontend-resources)项目am:出现Ant BuildException异常 d:除非= cmdsuccess [错误]未能执行目标org.apache.maven.plugins:maven-antrun-plugin:1.7: [在C:\ Users \ ADMIN \ Documents \ Code Base \ Removable Disk \ am \ target \ antrun \ build下建立前端部分... ... @ 14:30 结束resources.xml' – user2342259 2014-12-09 16:19:34