java - 当incrementalCompileWarnings标志设置为true时GWT "No source code is available for type"

标签 java maven gwt incremental-compiler gwt-2.7

当标志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/

相关文章:

java - 使用 Spring bean 在 JSF 1.2 中模拟 jsf 2.0 View 范围

java - 在 string.xml 中调用变量

Maven不执行junit测试

java - ClassNotFound 带有 Maven WAR 文件

java - GWTTestCase:测试私有(private)方法

java - GWT 记录器 : No control over debug output?

java - SQL/JAVA JDBC通讯链接偶尔出现错误

Java exec - 交互式进程的输出一直保留到进程终止为止

JavaFX 部署应用程序的 CSS 样式问题

java - GWT 基于字符串排序