使Maven 2在package、install等阶段跳过运行Test的配置
来源:互联网 发布:网络质量监测 编辑:程序博客网 时间:2024/05/07 08:01
方法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
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
- 使Maven 2在package、install等阶段跳过运行Test的配置
- 使Maven 2在package、install等阶段跳过运行Test的配置
- 使Maven 2在package、install等阶段跳过运行Test的配置
- 使Maven 2在package、install等阶段跳过运行Test的配置
- Maven跳过运行Test的配置(package,install)
- MAVEN 在执行package/install阶段跳过test步骤的方法
- maven install跳过test
- maven install 跳过 测试 test
- maven install 跳过 测试 test
- maven package和install跳过测试
- maven package或install 时跳过测试
- eclipse maven pom 跳过test阶段
- Maven 跳过test的命令
- maven 在编译的时候跳过 test junit的写法
- maven编译的时候跳过test
- maven编译的时候跳过test
- maven编译的时候跳过test
- MAVEN跳过测试install
- 工厂模式 抽象工厂模式 (创建模式)
- NS2 传输距离修改工具threshold使用详解
- 1000以内所有偶数的和(解法二)
- 汇编基础教程(二)——常用汇编指令之传送指令
- 实习日志(13):服务器端向Android客户端传值——登录实现(二)
- 使Maven 2在package、install等阶段跳过运行Test的配置
- 虚函数和纯虚函数
- php中把一个xml文件转换为数组
- HDU 4442 Physical Examination【2012金华A题,贪心】
- 我构架的时间管理系统–简版
- 用py2exe 打包python程序
- 杨康与杨过
- 利用Maven插件m2eclipse搭建SSH插件
- C#第九周实验之窗体设计