springboot报错:Failed to execute goal org.apache.maven-surefire-plugin:2.22.2:test (default-test) on project...

 

 如果遇到以上错误,可以配置打包时 跳过项目运行测试用例

<!--
在工作中,很多情况下我们打包是不想执行测试用例的
可能是测试用例不完事,或是测试用例会影响数据库数据
跳过测试用例执
-->
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-surefire-plugin</artifactId>
  <configuration>
    <!--跳过项目运行测试用例-->
    <skipTests>true</skipTests>
  </configuration>
</plugin>

from 狂神说: https://www.cnblogs.com/hellokuangshen/p/12447995.html

posted on 2021-07-26 09:10  Teitey  阅读(354)  评论(0)    收藏  举报

导航