Maven未使用故障安全插件进行集成测试
问题描述:
当我运行mvn clean install
时,对于integration-test
阶段,它不使用故障安全插件。Maven未使用故障安全插件进行集成测试
但是,如果我明确地称插件运行集成测试,它的工作原理(mvn failsafe:integration-test
)。
当我在integration-test
阶段运行mvn clean install
阶段时,如何让Maven使用失效保护插件?
答
To use the Failsafe Plugin, you need to add the following configuration
to your pom.xml
<project>
[...]
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.11</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
[...]
</project>
这是你在寻找什么?
是的,我错过了在我的朋友 – Sujen 2011-06-17 13:30:20
官方文档是404。 – Svish 2013-02-06 13:20:21
@svish更新。谢谢! – 2013-02-06 13:53:57