maven 打包报错Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default

版权声明:如果觉得好的话,不防点个赞,那点你们认为不对或是需要补充,可以留言啊!本人原创,未经允许不得转载!! https://blog.csdn.net/qq_28289405/article/details/84935532

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project xxx: There are test failures.

解决方法:在测试的类上添加 注释 @Ignore 进行忽略这个类,在打包的时候就不会打包这个类了。

或是那个方法错了,在那个方法上添加 @Ignore 注解也是可以的!!

参考:

猜你喜欢

转载自blog.csdn.net/qq_28289405/article/details/84935532
今日推荐