私は以下のユースケースを持っています: Spring WSで実装されたWebサービスを使用してSpring MVCで実装されたWebアプリケーションがあります。2つのアプリケーションをデプロイするmaven-embedded-glassfish-plugin
プロジェクトはビルドツールとしてmavenを使用しています。 今、Webアプリケーションの統合テストを実装したいと思います。 これはmaven-embedded-glassfish-pluginを使用したいと思っています。 は私がのpom.xmlに以下のMavenの構成を有している:
<plugin>
<groupId>org.glassfish</groupId>
<artifactId>maven-embedded-glassfish-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<goalPrefix>embedded-glassfish</goalPrefix>
<app>${basedir}/target/web-app.war</app>
<autoDelete>true</autoDelete>
<port>8080</port>
<name>web-app</name>
<configFile>src/test/resources/glassfish/domain.xml</configFile>
</configuration>
<executions>
<execution>
<id>start-glassfish</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>glassfish-deploy</id>
<phase>pre-integration-test</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
<execution>
<id>glassfish-undeploy</id>
<phase>post-integration-test</phase>
<goals>
<goal>undeploy</goal>
</goals>
</execution>
<execution>
<id>stop-glassfish</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
すべてが正常に動作します。 しかし、私はwebservice.warファイルの配備を追加する必要があります。 これは私のポームの依存関係ではありません。 web-app.warアプリケーションで定義されたWebサービスを呼び出すためのスタブクラスのみを持っています。
この2番目のアプリケーションをどのように配備するのがいいですか?
私は自動的に何かになりたいのですが、おそらくmavenリポジトリを使用しています。私が修正を加えると自動的に新しいバージョンのWebサービスを使いたいのです。