BUG库(Maven)Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test

版权声明:源于开源_为之开源 https://blog.csdn.net/qq827245563/article/details/88108068

一.Maven打包失败

1.场景-项目中打包执行测试类 报错 

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

二.解决方案

1.idea工具 跳过选择按钮

2.在pom文件中添加 插件


<plugin>  
   <groupId>org.apache.maven.plugins</groupId>  
   <artifactId>maven-surefire-plugin</artifactId>  
   <version>2.4.2</version>  
   <configuration>  
   <skipTests>true</skipTests>  
   </configuration>  
</plugin>

猜你喜欢

转载自blog.csdn.net/qq827245563/article/details/88108068