环境运维

maven编译的时候跳过test

方式1:用命令带上参数

1

mvn install -Dmaven.test.skip=true

 

方式2:在pom.xml里面配置

1

2

3

4

5

6

7

<plugin>

   <groupId>org.apache.maven.plugins</groupId>

   <artifactId>maven-surefire-plugin</artifactId>

   <configuration>

      <skip>true</skip>

   </configuration>

</plugin>

 

转自:https://www.cnblogs.com/nihaorz/p/6677622.html