[ERROR] Unable to find type
‘in.appops.showcase.web.gwt.uploadservice.client.UploadService’ [INFO]
[ERROR] Hint: Previous compiler errors may have made this type
unavailable [INFO] [ERROR] Hint: Check the inheritance chain
from your module; it may not be inheriting a required module or a
module may not be adding its source path entries properly
我的项目有核心和调度模块,它们是没有入口点的实用模块和其他上传服务模块,它们具有继承核心模块的入口点.
所以我将core.gwt.xml,dispatch.get.xml放在它们的包中,即在src / main / java本身和uploadservice.gwt.xml中的maven资源文件夹中.
也在pom.xml中我提供了编译的模块:
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.4.0</version>
<goals>
<goal>clean</goal>
<goal>resources</goal>
<goal>compile</goal>
<goal>i18n</goal>
<goal>generateAsync</goal>
</goals>
<configuration>
<runTarget>Index.html</runTarget>
<hostedWebapp>${webappDirectory}</hostedWebapp>
<modules>
<!-- <module>platform.bindings.web.gwt.dispatch.Dispatch</module>
<module>platform.core.Core</module> -->
<module>showcase.web.gwt.addressbook.AddressBook</module>
<module>showcase.web.gwt.uploadservice.UploadService</module>
</modules>
</configuration>
</pluginExecutionFilter>
<action>
<execute />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
任何人都可以帮我摆脱这个例外.是否需要提供编译模块或其他任何东西的命令?
注1 –当使用gwt标准时你的文件夹结构
src/main/java/showcase/web/gwt/yourmodule/yourmodule.gwt.xml
src/main/java/showcase/web/gwt/yourmodule/client
src/main/java/showcase/web/gwt/yourmodule/public
Your pom references
<module>showcase.web.gwt.addressbook.AddressBook</module>
<module>showcase.web.gwt.uploadservice.UploadService</module>
Your .gwt.xml file location
src/main/java/showcase/web/gwt/addressbook/AddressBook.gwt.xml
src/main/java/showcase/web/gwthttp://img.558idc.com/uploadfileervice/UploadService.gwt.xml
注2 – < lifecycleMappingMetadata>适用于你的m2e = maven eclipse插件.有关GWT MAVEN POM示例的明确示例 – http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/validation/pom.xml
注3 – 正好遵循gwt maven样本项目的极其简单的例子 – http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/validation/
请勿更改文件夹位置. *遵循命名约定.*甚至文件夹名称如公共,客户端都被GWT中的“名称”选中.
