Maven-跳过建筑测试课程 [英] Maven - Skip building test classes
本文介绍了Maven-跳过建筑测试课程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有不构建测试类的简单方法?
Is there a simple way to not build the test classes?
mvn clean install -Dmaven.test.skip=true
沃尔特
推荐答案
根据文档,-Dmaven.test.skip
应该同时跳过测试的编译和执行.相比之下,-DskipTests
只是跳过了测试 execution :测试仍在编译中.
According to the documentation on the Maven Surefire Plugin, -Dmaven.test.skip
should skip both compilation and execution of the tests. By contrast, -DskipTests
just skips the test execution: the tests are still compiled.
这篇关于Maven-跳过建筑测试课程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文