使Maven 2在package、install等阶段跳过运行Test的配置
来源:互联网 发布:手机创业软件 编辑:程序博客网 时间:2024/05/18 02:54
Skipping Tests
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>
- <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>
You can also skip the tests via command line by executing the following command:
mvn install -DskipTests
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://mysun.iteye.com/blog/403502
- 使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
- ActiveMQ学习笔记之HelloWorld
- 从进程到内核---ring3到ring0
- 装饰者模式
- 怎样进行Xss攻击
- Mount挂载命令使用方法
- 使Maven 2在package、install等阶段跳过运行Test的配置
- strstr和memcmp函数的实现
- Poj 2096 (dp求期望) 概率dp
- 机器学习实战笔记:决策树
- 解决eclipse中egit中的cannot open git-upload-pack问题
- 简单破解 Sencha Architect 2.2
- clock_gettime测代码运行时间
- 如何将Jason中的NSString类型转化为NSArray类型
- Linux Mount远程目录