码迷,mamicode.com
首页 > Web开发 > 详细

[转]maven打包报错:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test

时间:2017-11-21 17:01:14      阅读:214      评论:0      收藏:0      [点我收藏+]

标签:maven打包   ref   net   cut   config   compile   cti   url   log   

源文URL:http://blog.csdn.net/caiwenfeng_for_23/article/details/44514947

 

mvn compile  没有问题,mvn package的时候报如下错误:

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.4.2</version>  
        <configuration>  
          <skipTests>true</skipTests>  
        </configuration>  
</plugin>  

 

[转]maven打包报错:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test

标签:maven打包   ref   net   cut   config   compile   cti   url   log   

原文地址:http://www.cnblogs.com/daxia/p/7873527.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!