启动报错:
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project gulimall-coupon: There are test failures.
Please refer to E:\java\gulimall\gulimall-coupon\target\surefire-reports for the individual test results.
Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.

在pom中加上依赖
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>

本文介绍了一个关于Maven项目中单元测试失败的问题,并提供了解决方案,即通过配置maven-surefire-plugin插件来跳过测试,以确保项目的构建能够正常进行。
4541

被折叠的 条评论
为什么被折叠?



