を実行するmvn clean install
と、integration-test
フェーズではフェイルセーフ プラグインが使用されません。
ただし、プラグインを明示的に呼び出して統合テストを実行すると、機能します ( mvn failsafe:integration-test
)。
フェーズmvn clean install
中に実行するときに maven にフェイルセーフ プラグインを使用させるにはどうすればよいですか?integration-test
を実行するmvn clean install
と、integration-test
フェーズではフェイルセーフ プラグインが使用されません。
ただし、プラグインを明示的に呼び出して統合テストを実行すると、機能します ( mvn failsafe:integration-test
)。
フェーズmvn clean install
中に実行するときに maven にフェイルセーフ プラグインを使用させるにはどうすればよいですか?integration-test
公式ドキュメントからの引用:
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>
これはあなたが探しているものですか?