使Maven 2在package、install等阶段跳过运行Test的配置
来源:互联网 发布:淘宝联盟下载 编辑:程序博客网 时间:2024/05/19 17:10
三种方法:
方法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
0 0
- 使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
- 继承与派生
- C#DatagridView中单元格合法验证判断
- android bootchart 分析开机启动时间
- 百度地图开发备忘录
- Java 集合类
- 使Maven 2在package、install等阶段跳过运行Test的配置
- vc 基于对话框多线程编程实例——线程之间的通信
- JSONObject和JSONArray的使用
- python - web框架 - Flask sqlalchemy Mysql
- viewWithTag获取subview规则详解
- cocos2dx中函数指针传递的方法
- tar not found in archive
- CSS3 经典教程系列:CSS3 线性渐变(linear-gradient)
- IOS分辨率的修改方法