Maven打包时跳过测试(maven-surefire-plugin) - wisdom-chen - CSDN博客

1、在pom文件添加


<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>2.18.1</version>
    <configuration>
        <skipTests>true</skipTests>
    </configuration>
</plugin>

2、mvn 命令跳过 


mvn clean package -Dmaven.test.skip=true

Original url: Access
Created at: 2019-10-08 17:22:25
Category: default
Tags: none

请先后发表评论
  • 最新评论
  • 总共0条评论