使Maven 2在package、install等阶段跳过运行Test的配置
2012-10-29 17:05
489 查看
方法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 在执行package/install阶段跳过test步骤的方法
- Maven配置插件跳过测试代码的编译和运行
- 在myeclipse中使用maven插件的时候,运行run as maven test或者install的时候报错,显示teminated....javaw.exe
- idea中运行maven安装jar包到本地仓库跳过test
- Maven Jetty Plugin运行配置jetty:run
- SpringBoot项目在新电脑上的配置运行,包括JDK+MAVEN+Git+SpringBoot配置等
- maven的package与install命令区别
- maven跳过单元测试-maven.test.skip和skipTests的区别
- 在使用eclipse 运行 maven install的时候,出现这个错误:Unable to locate the Javac Compiler in:…
- 阶段巨献 - centos+php-fpm+mariaDB+svn+nodejs,配置linux的php和nodejs网站运行环境。
- maven的package与install命令区别
- maven打包 tomcat运行pom配置 或 打成jar包
- 新版idea 运行maven web项目 配置
- Eclipse下通过Maven的Jetty插件运行Web工程的配置
- Eclipse j2ee中搭建新建maven项目后运行install报编译错误
- 服务 {49A27252-A326-4EF1-B698-6EBC7068833C} 的计时器作业 id {573BE459-DF82-481C-84BD-CA14D287450B} 配置刷新的上一个实例仍在运行,因此将跳过当前的实例。请考虑增加作业之间的时间间隔。