0
点赞
收藏
分享

微信扫一扫

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

彩虹_bd07 2023-09-13 阅读 27


一.Maven打包失败

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

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

二.解决方案

1.idea工具 跳过选择按钮

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

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>

 

举报

相关推荐

0 条评论