このようなマルチモジュール構造のプロジェクトがあります
root
|
core
|
core-services
|
core-gwt-ui
|
some-like-core-modules
|
root-war
root-warこれは、他のすべてのモジュールjarを1つの.warに圧縮するモジュールです。mavenがcore-gwt-uiをビルドすると、src.mainにwebappdirが作成されます。別のモジュールでも同じ話です。
では、root-war.pomを調整して、すべてのgwtビルド結果を1つの戦争に集めるにはどうすればよいですか?
これがcore-gwt-uiをビルドするための私のmavenプラグイン構成です
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<inplace>true</inplace>
<runTarget>sample.client.Sample25/Sample25.html</runTarget>
</configuration>
</plugin>