尝试将 KineticGWT 与 Maven 一起使用,但出现以下错误。任何帮助表示赞赏。我的 Application.gwt.xml 也附在下面。
应用程序.gwt.xml:
<!DOCTYPE module PUBLIC "//gwt-module/" "http://google-web-toolkit.googlecode.com/svn/tags/1.6.2/distro-source/core/src/gwt-module.dtd">
<module>
<inherits name='com.google.gwt.user.User'/>
<inherits name='com.google.gwt.user.theme.standard.Standard'/>
<inherits name="net.edzard.kinetic"/>
<entry-point class='org.gaoshin.openflier.client.Application'/>
<stylesheet src='Application.css' />
</module>
Maven命令错误:
$ mvn install
[INFO] Compiling module org.gaoshin.openflier.Application
[INFO] Refreshing module from source
[INFO] Validating newly compiled units
[INFO] Removing units with errors
[INFO] [ERROR] Errors in 'jar:file:/Users/kzhang/.m2/repository/net/edzard/kineticgwt/0.9.2-SNAPSHOT/kineticgwt-0.9.2-SNAPSHOT-sources.jar!/net/edzard/kinetic/Canvas.java'
[INFO] [ERROR] Line 3: The import com.google.gwt.canvas cannot be resolved
[INFO] [ERROR] Line 5: The import com.google.gwt.dom.client.CanvasElement cannot be resolved
[INFO] [ERROR] Line 15: Context2d cannot be resolved to a type
在 pom.xml 文件中,我包含了 gwt-user 依赖项。我的 gwt 版本是 1.7.1