我創建GWT項目與 MVN原型:生成-DarchetypeGroupId = org.codehaus.mojo -DarchetypeArtifactId = GWT-行家-插件-DarchetypeVersion = 2.5.0生成的項目與GWT-行家-插件:日食
在eclipse juno中導入項目。
首先錯誤我得到是這樣的:org.codehaus.mojo::未包括生命週期配置 插件執行GWT-maven- 插件:2.5.0:I18N(執行:默認值,相:產生來源)
在pom文件中。
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.5.0</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test</goal>
<goal>i18n</goal>
<goal>generateAsync</goal>
</goals>
</execution>
</executions>
<!-- Plugin configuration. There are many available options, see
gwt-maven-plugin documentation at codehaus.org -->
<configuration>
<runTarget>dashboard.html</runTarget>
<hostedWebapp>${webappDirectory}</hostedWebapp>
<i18nMessagesBundle>com.farheap.jsi.dashboard.client.Messages</i18nMessagesBundle>
</configuration>
而且代碼中包含一個GreetingServiceAsync無法找到。
private final GreetingServiceAsync greetingService = GWT.create(GreetingService.class);
我修復了這個插件錯誤: – klind 2013-02-15 00:56:33