gpt4 book ai didi

java - 如何在maven中解决 "failed to execute goal "maven-surefire-plugin :2. 19.1"

转载 作者:行者123 更新时间:2023-11-29 08:41:06 24 4
gpt4 key购买 nike

我正在尝试在 maven 中构建一个简单的有效登录测试,以便稍后在 jenkins 服务器中运行。

问题是:每次我构建(全新安装)时都会收到以下错误:

[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

如果您不想执行测试,则跳过测试。

关于java - 如何在maven中解决 "failed to execute goal "maven-surefire-plugin :2. 19.1",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40229895/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com