当标志incrementalCompileWarnings未设置为true(对于maven-gwt-plugin)时,我们的项目可以正常编译。设置后,出现如下错误:
Tracing compile failure path for type 'my.module.client.entryPoint.MyModuleEntryPoint'
[INFO] [ERROR] Errors in 'jar:file:/path/to/jar.jar!/my/module/client/entryPoint/MyModuleEntryPoint.java'
[INFO] [ERROR] Line 76: No source code is available for type my.module.service.client.SomeClientClass; did you forget to inherit a required module?
但是我在 MyModule.gwt.xml 中有所需的行:
<inherits name="my.module.service.client.SomeClient"/>
什么可能导致这个问题?
最佳答案
该错误表明该文件是从 jar 中检索的。可能是 jar 不是最新的。
关于java - 当incrementalCompileWarnings标志设置为true时GWT "No source code is available for type",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28348005/