启动spring测试报错 Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (defa

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 D:\m1\0613\mall-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.

启动spring测试报错 Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (defa

解决办法
既不是JDK问题也不是版本问题,在参考了maven打包时跳过测试中根据文章提示

在pom.xml最下面添加配置就好了

启动spring测试报错 Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (defa

org.springframework.bootspring-boot-maven-plugin
              <!--  <excludes>
                    <exclude>
                        <groupId>org.projectlombok</groupId>
                        <artifactId>lombok</artifactId>
                    </exclude>
                </excludes>-->

            </configuration>
        </plugin>
        <!--添加配置跳过测试-->
        <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>
上一篇:jvm的传唱-常用调试指令


下一篇:如何从 dump 文件中提取出 C# 源代码?