maven install时报错Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test(示例
Posted Jony.K.Chen Blog
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了maven install时报错Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test(示例相关的知识,希望对你有一定的参考价值。
事故现场:
解决办法:
一是命令行,
mvn clean package -Dmaven.test.skip=true
去项目所在文件夹与pom文件同级执行命令
二是写入pom文件,注意父子级节点结构
.....
<build>
<plugins>
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.4.2</version> <configuration> <skipTests>true</skipTests> </configuration> </plugin>
</plugins>
</build>
.....
以上是关于maven install时报错Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test(示例的主要内容,如果未能解决你的问题,请参考以下文章