方式1:用命令带上参数

mvn install -Dmaven.test.skip=true

 

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

<build>
<defaultGoal>compile</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>

 

参考:

http://www.cnblogs.com/GarfieldTom/p/3707160.html
http://my.oschina.net/u/865478/blog/159657

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
  • 2021-04-30
猜你喜欢
  • 2021-06-20
  • 2021-08-21
  • 2022-01-28
  • 2022-12-23
  • 2021-12-16
  • 2022-01-02
  • 2021-10-13
相关资源
相似解决方案