[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-t

关于这个问题解决方案有两种
1.我就不想跳过测试(因为跳过测试只是掩盖问题,有问题我不做了,这种心态可不好)
2.我们常见的跳过测试
1.1修改测试类
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-t_第1张图片

1.2高版本的测试插件有时候不太兼容,我们指定maven测试插件版本
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-t_第2张图片

常用的跳过测试有两种办法:
2.1:
我直接上图:先点1,后点2
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-t_第3张图片
2.2:跳过测试第二种方案:

<plugin>  
        <groupId>org.apache.maven.pluginsgroupId>  
        <artifactId>maven-surefire-pluginartifactId>  
        <version>2.4.2version>  
        <configuration>  
          <skipTests>trueskipTests>  
        configuration>  
plugin>

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