使Maven 2在package、install等阶段跳过运行Test的配置
来源:互联网 发布:mysql 删除字段 编辑:程序博客网 时间:2024/05/28 11:30
使Maven 2在package、install等阶段跳过运行Test的配置
- 博客分类:
- Java SE
mavenApacheXML
Skipping Tests
To skip running the tests for a particular project, set the skipTests property to true.
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
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
- 使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
- memcache-clinet操作
- git 入门教程
- structs2.3在jsp提交数据到action时候的乱码的解决
- 黑马程序员_java面向对象理解
- 如何利用php操作memcache?
- 使Maven 2在package、install等阶段跳过运行Test的配置
- Hadoop, Google File System等相关名词解释
- 文件的基本操作一
- Class文件内容及常量池
- Mysql的备份和恢复
- Algorithmic Implementation series(2)——Implementation of Selection_sort
- Java 虚拟机体系结构
- 理解Linux中的CPU负载
- Algorithmic Implementation series(3) Implementation of Merge_Sort