目前我有一些非常繁重的测试,我只想在安装 Maven 包之前运行它们。我无法将其传达给我的 pom,到目前为止包括:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.13</version>
<executions>
<execution>
<id>dummied-test</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<skip>true</skip>
</configuration>
</execution>
<execution>
<id>test-in-verify-phase</id>
<phase>verify</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
你可以猜到我 1) 首先尝试将其绑定到verify
阶段,2) 尝试将其显式添加到test
没有目标的阶段,3) 将其添加到设置为 true的test
阶段...skip
如何告诉 Maven 在测试阶段不要运行测试?