我忘了继承一个必需的模块吗?

时间:2017-08-26 09:53:24

标签: java gwt

我的项目包含2个模块客户端和服务器

Project

-- client
----src/main/java
------com.myProject.gwt.code
----app.gwt.xml
---pom.xml

--server
----src/main/java
------com.myProject.nonGwtCode
--------style.java
----src/main/resources
------server.gwt.xml 
---pom.xml

pom.xml

客户端和服务器模块也使用style.java 我做的是

  1. 我在<inherits name='server' />
  2. 中添加了app.gwt.xml
  3. 我在<source path="com/myProject/nonGwtCode"/>
  4. 中写了server.gwt.xml
  5. 我将服务器项目从run-&gt;添加到项目类路径运行配置 但我仍然有错误No source code is available for type com.myProject.nonGwtCode.style; did you forget to inherit a required module?
  6. 此外,当我将style.java添加到客户端模块时,它编译得很好,但我希望从服务器模块中看到它,因为它在两个模块中使用..任何帮助?? 我正在投资2天,现在正在寻找此错误,但一无所获..任何帮助将不胜感激

0 个答案:

没有答案