5
當我運行mvn clean install
時,對於integration-test
階段,它不使用故障安全插件。Maven未使用故障安全插件進行集成測試
但是,如果我明確地稱插件運行集成測試,它的工作原理(mvn failsafe:integration-test
)。
當我在integration-test
階段運行mvn clean install
階段時,如何讓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