pre-integration-test完全な Maven Integration-Test ライフサイクル ( 、integration-test、post-integration-test) を 2 回実行したいと考えています。
を使用しcargo-maven2-pluginて tomcat をpre-integration-test段階的に起動し、 でシャットダウンしpost-integration-testます。合間に ( で) 、統合テストを実行するためintegration-testに使用します。maven-failsafe-plugin
問題は、2 つの異なるサーバー構成があることです (同じ統合テストでテストできます)。そして、私はそれらの両方をテストする必要があります。しかし、両方のサーバーを並行して実行するリソースがありません。したがって、完全な統合テストを 2 回繰り返す必要があります。
pre-integration-test (1)integration-test (1)post-integration-test (1)pre-integration-test (2)integration-test (2)post-integration-test (2)
この方法でMavenのライフサイクルを変更する方法を知っている人はいますか?