【问题标题】:Gathering multi gwt modules to one war为一场战争收集多个 gwt 模块
【发布时间】:2012-09-14 12:34:35
【问题描述】:

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

root
|
core
  |
  core-services
  |
  core-gwt-ui
|
some-like-core-modules
|
root-war

root-war 这是将所有其他模块 jars 压缩为一个 .war 的模块。 当 maven 构建 core-gwt-ui 时,我将在 src.main 中获得 webapp 目录。与另一个模块是同样的故事。

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

这是我构建 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>

【问题讨论】:

    标签: gwt maven


    【解决方案1】:

    你有两个选择:

    1. 你在每个项目中gwt:compile你的应用程序,在这种情况下,它们最好是你在root-war中使用覆盖的WARs /p>

    2. 或者您只需将源代码和类打包,然后在 root-war 中进行大型 gwt:compile

    【讨论】:

      猜你喜欢
      • 2016-09-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-01-22
      • 1970-01-01
      • 1970-01-01
      • 2018-08-11
      相关资源
      最近更新 更多