SpringBoot打包错误:Please refer to xxx\target\surefire-reports for the individual test results

文章讲述了在SpringBoot项目打包过程中遇到的错误,提示需查看surefire-reports中的测试结果。解决方案包括检查IDEA中是否禁用了测试执行,以及在POM.xml中添加配置,通过maven-surefire-plugin插件的skip属性跳过测试阶段,从而成功打包项目。
摘要由CSDN通过智能技术生成

SpringBoot打包错误:Please refer to xxx\target\surefire-reports for the individual test results

请添加图片描述

网上的解决方式是:

方法一:

请添加图片描述
想必是有人也没有这个闪电图标,原因是IDEA版本的问题,你可以找找
请添加图片描述
这个图标的意思是切换“跳过测试”模式,当图标背景置灰后就可以了

方法二:修改pom.xml文件

<build>
  <plugins>
<!-- maven 打包时跳过测试 -->
   <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <skip>true</skip>
                </configuration>
            </plugin>
       </plugins>
   <build>    

不出意外的话问题就解决了,成功的样子
在这里插入图片描述

  • 5
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值