前兩天遇到個問題
GWT項目用eclipse 可以正常運行,可是放到Tomcat下就不可以運行了(一直顯示載入的界面),
弄了一天這個問題。。後來發現是同事爲了測試快,而註釋掉了一個plugin。。。
<!-- configure maven-gwt-plugin -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<logLevel>INFO</logLevel>
<extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs>
<module>${project.groupId}.xxxxx</module>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>clean</goal>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
順便把以前遇到的問題也記錄一下
之前運行提示 need recompiled 這個問題解決很簡單 用eclipse 自帶的google compile 一下就可以了
而且如果 代碼改的是 client或者service的頁面代碼 最好也用google compile 一下 要不可能發佈出去的 不是最新的版本