Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test


Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project vpx: There are test failures(未能在项目vpx上执行目标org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test:存在测试失败。)

场景

在用maven打包springboot项目的时候报的错误

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test_第1张图片

解决

出现这个的问题就是因为你的test模块里面有问题,把你的test删掉,或者maven打包忽略test就好了

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test_第2张图片

选中test,然后点击闪电按钮,打包的时候就会忽略test模块了

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test_第3张图片

你要是必须带test,那你就去查看报错信息,去解决然后打包就好了,下面就是你看错误信息的地方

你可能感兴趣的:(maven,java,spring,boot)