将多个gwt模块聚集到一场战争中

将多个gwt模块聚集到一场战争中,gwt,maven,Gwt,Maven,我有一个多模块结构的项目,像这样 root | core | core-services | core-gwt-ui | some-like-core-modules | root-war 根war此模块用于将所有其他模块JAR压缩为一个。war。 当maven构建核心gwt ui时,我将在src.main中获得webappdir。与其他模块的情况相同 那么,如何调整root-war.pom以将所有gwt构建结果收集到一个war 下面是我的maven插件配置,用于构建核心gwt

我有一个多模块结构的项目,像这样

root
|
core
  |
  core-services
  |
  core-gwt-ui
|
some-like-core-modules
|
root-war
根war此模块用于将所有其他模块JAR压缩为一个。war。 当maven构建核心gwt ui时,我将在src.main中获得webappdir。与其他模块的情况相同

那么,如何调整root-war.pom以将所有gwt构建结果收集到一个war

下面是我的maven插件配置,用于构建核心gwt ui

<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>

org.codehaus.mojo
GWTMaven插件
编译
真的
sample.client.Sample25/Sample25.html
您有两种选择:

  • 要么你gwt:在每个项目中编译你的应用程序,在这种情况下,它们最好是你在根war中使用覆盖的war

  • 或者,您只需打包源代码和类,然后在根war中执行一个大型gwt:编译

  • 您有两种选择:

  • 要么你gwt:在每个项目中编译你的应用程序,在这种情况下,它们最好是你在根war中使用覆盖的war

  • 或者,您只需打包源代码和类,然后在根war中执行一个大型gwt:编译