我正在尝试在 Maven 中构建一个简单的有效登录测试,以便稍后在詹金斯服务器中运行。
问题是:每次我构建(全新安装)时,我都会收到以下错误:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project validLogin: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\Me\workspace\validLogin\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
我真的脱发了,怎么解决? (错误不是头发)
您可以使用
mvn clean install -DskipTests
如果您不希望执行测试,则可以跳过测试。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)