如何在 pom 中设置不在 Maven 中编译测试?我试过:
<properties>
<skipTests>true</skipTests>
</properties>
但在那种情况下,Maven 编译测试但不运行它们。我需要 Maven 不要编译我的测试。
最佳答案
您必须将 maven.test.skip 定义为 true。
<properties>
<maven.test.skip>true</maven.test.skip>
</properties>
http://maven.apache.org/surefire/maven-surefire-plugin/examples/skipping-test.html
关于java - 如何在 pom 中设置不编译测试?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15821684/