【发布时间】:2019-05-05 12:03:12
【问题描述】:
尽管pom.xml 文件中的surefire 插件配置下有<exclude> 条目,但哪个maven 命令可用于执行所有测试?
例如 - 以下是来自 pom.xml 的部分,但我不想排除 TestA.java。可以使用哪个maven命令?
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/TestA.java</exclude>
</excludes>
</configuration>
</plugin>
【问题讨论】:
-
“通过 maven 命令”是什么意思?另一种方法是什么?
-
已对问题进行了编辑以使其更加清晰。如果还不清楚,请在此处发布。
标签: maven maven-3 maven-plugin maven-surefire-plugin