maven 打包错误解决:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test

打包跳过测试有两种方法

一是命令行,

mvn clean package -Dmaven.test.skip=true

二是写入pom文件

<plugin>  
        <groupId>org.apache.maven.plugins</groupId>  
        <artifactId>maven-surefire-plugin</artifactId>  
        <version>2.18.1</version>  
        <configuration>  
          <skipTests>true</skipTests>  
        </configuration>  
</plugin>  
    原文作者:懒豆豆柒
    原文地址: https://www.jianshu.com/p/6c2897974c93
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞