使Maven 2在package、install等阶段跳过运行Test的配置
2015-01-07 11:40
232 查看
三种方法:
本篇文章转载地址:http://blog.csdn.net/jiushuai/article/details/7478372
方法1:
To skip running the tests for a particular project, set the skipTests property to true.
<project>
[...]
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.2</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>
[...]
</project>
方法2:
You can also skip the tests via command line by executing the following command:
mvn install -DskipTests
方法3:
If you absolutely must, you can also use the maven.test.skip property to skip compiling the tests. maven.test.skip is honored by Surefire and the Compiler Plugin.
mvn install -Dmaven.test.skip=true
本篇文章转载地址:http://blog.csdn.net/jiushuai/article/details/7478372
相关文章推荐
- 使Maven 2在package、install等阶段跳过运行Test的配置
- 使Maven 2在package、install等阶段跳过运行Test的配置
- 使Maven 2在package、install等阶段跳过运行Test的配置
- 使Maven 2在package、install等阶段跳过运行Test的配置
- MAVEN 在执行package/install阶段跳过test步骤的方法
- idea中运行maven安装jar包到本地仓库跳过test
- 在myeclipse中使用maven插件的时候,运行run as maven test或者install的时候报错,显示teminated....javaw.exe
- Maven配置插件跳过测试代码的编译和运行
- EWARM IAR5.4编译链接过程, 程序运行阶段, ICF ilink配置文件
- maven两种方式跳过编译test
- eclipse运行 Maven Test命令时控制台输出乱码的解决办法
- [Maven] web_test 的 pom.xml 的配置
- 在使用eclipse 运行 maven install的时候,出现错误:
- eclipse运行 Maven Test命令时控制台输出乱码的解决办法
- maven 中配置运行指定的测试文件
- 服务 {49A27252-A326-4EF1-B698-6EBC7068833C} 的计时器作业 id {573BE459-DF82-481C-84BD-CA14D287450B} 配置刷新的上一个实例仍在运行,因此将跳过当前的实例。请考虑增加作业之间的时间间隔。
- maven 在tomcat下的配置与运行
- Maven中运行项目不用每次都jety:run,配置.xml文件
- Maven编译时跳过Test
- FSO组件不可用,各种与FSO相关的功能都将出错!请运行Install.asp或者到后台网站配置处设置好FSO组件名称。或无法使用vbscript