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(示例的主要内容,如果未能解决你的问题,请参考以下文章

Maven多模块项目单独编译子模块项目时报错:Failed to execute goal on project

Maven install 报错: Failed to execute goalorg.apache.maven.plugins:maven-gpg-plugin:1.4:sign (sign-art

针对maven install 报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1 解决方案(示例

ubuntu 执行sudo apt-get install libgtk2.0-devs安装gtk+-2.0时报错Failed to fetch IP:https://的解决

解决maven install报错信息(Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compil

adb install 安装apk时报错Failure [INSTALL_FAILED_TEST_ONLY]解决方法