2012-09-14 56 views
1

我有一个多模块结构的项目,像这样聚会多GWT模块,一个战争

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

根战争这是模块压缩所有其它模块罐子一个的.war。 当maven构建核心-gwt-ui我会得到webapp目录在src.main。与另一个模块是相同的故事。

因此,如何调整根war.pom收集所有GWT在构建结果到一个战争

这里是我的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> 

回答

1

你有两个选择:

  1. 要么你GWT:编译你在每个项目中的应用,在这种情况下,他们最好是WAR,你在根战中使用覆盖

  2. 或者你只是打包源代码和类,并做一个大的gwt:编译根本战