我正在进行一个Spring MVC项目。一切都很好,我没有错过任何jar文件。在“mvn clean install”上我收到以下错误。
到目前为止,我已经尝试了我在类似主题上发现的所有其他建议,例如:“mvn dependency :: tree”,所以我可以检查是否缺少任何存储库但没有结果。 对于一些人来说,它看起来像“mvn clean install -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>
答案 0 :(得分:1)
一个或多个测试失败。你有两个选择
修复这些测试用例并尝试。
或
运行mvn clean install -Dmaven.test.skip
。此命令将跳过测试阶段。