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

//编译或打包时报错,需要在pom.xml文件中加上下面内容
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>2.22.2</version>
    <configuration>
        <testFailureIgnore>true</testFailureIgnore>
    </configuration>
</plugin>

 

posted @ 2022-08-05 17:11  一隅桥畔  阅读(363)  评论(0)    收藏  举报