美文网首页
maven 打包错误解决:Failed to execute g

maven 打包错误解决:Failed to execute g

作者: 懒豆豆柒 | 来源:发表于2017-12-18 15:55 被阅读0次

打包跳过测试有两种方法

一是命令行,

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>  

相关文章

网友评论

      本文标题:maven 打包错误解决:Failed to execute g

      本文链接:https://www.haomeiwen.com/subject/kusmwxtx.html