我正在尝试使用带有 gwt-maven-plugin 的 Maven 运行遗留项目。我有以下错误
找到接口 com.google.gwt.core.ext.typeinfo.JClassType,但预期类
它与 GWT 2.4.0 连接。有一些关于降级 GWT 或重新编译 gwtp 的答案,但我不明白。
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.4.0</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>i18n</goal>
</goals>
</execution>
</executions>
<configuration>
<runTarget>someTarget.html</runTarget>
<hostedWebapp>${webappDir}</hostedWebapp>
<i18nMessagesBundle>org.I18nMsg</i18nMessagesBundle>
</configuration>
</plugin>
<pluginManagement>
<plugins>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
gwt-maven-plugin
</artifactId>
<versionRange>
[2.4.0,)
</versionRange>
<goals>
<goal>i18n</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute></execute>
</action>
</pluginExecution>
</pluginExecutions>
....
错误:
[INFO] Scanning for additional dependencies: jar:file:/C:/Users/xxx/.m2/repository/com/extjs/gxt/2.2.0/gxt-2.2.0.jar!/com/extjs/gxt/ui/client/core/El.java
[INFO] Computing all possible rebind results for 'com.extjs.gxt.ui.client.core.impl.ComputedStyleImpl'
[INFO] Rebinding com.extjs.gxt.ui.client.core.impl.ComputedStyleImpl
[INFO] Could not find an exact match rule. Using 'closest' rule <replace-with class='com.extjs.gxt.ui.client.core.impl.ComputedStyleImplIE'/> based on fall back values. You may need to implement a specific binding in case the fall back behavior does not replace the missing binding
[INFO] Rebinding com.extjs.gxt.ui.client.core.impl.ComputedStyleImpl
[INFO] Could not find an exact match rule. Using 'closest' rule <replace-with class='com.extjs.gxt.ui.client.core.impl.ComputedStyleImplIE'/> based on fall back values. You may need to implement a specific binding in case the fall back behavior does not replace the missing binding
[INFO] [ERROR] Errors in 'jar:file:/C:/Users/xxx/.m2/repository/com/extjs/gxt/2.2.0/gxt-2.2.0.jar!/com/extjs/gxt/ui/client/data/BeanModelLookup.java'
[INFO] [ERROR] Internal compiler error
[INFO] java.lang.IncompatibleClassChangeError: Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected