maven打包报错:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test
mvn package的时候报如下错误:
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test
亲测解决方法如下:
在pom文件中添加
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.2</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
原文链接:https://blog.csdn.net/caiwenfeng_for_23/article/details/44514947
我只试了第二种方法!!!