无法让聚合物元素在 GWT 中工作

Can't get polymer elements working in GWT

我这辈子都无法在 GWT 项目中使用 vaadin 聚合物元素。我有新添加的 Java EE Eclipse Mars,我正在使用 Gwt 2.8.0 SNAPSHOT beta,从 1 月 11 日开始从 sonatype 更新 Jars,我有 -generateJsInteropExports 标记集,我仍然收到以下 jsinterop 错误。据我所知,这应该在最新的测试版中得到修复,但它似乎对我不起作用,而且每晚构建也没有改变任何东西。有什么想法吗?

Super Dev Mode starting up
workDir: C:\Users\John\AppData\Local\Temp\gwt-codeserver- 700489888360387855.tmp
Loading inherited module 'com.test.Gwttest'
   Loading inherited module 'com.google.gwt.core.Core'
     Loading inherited module 'jsinterop.annotations.Annotations'
        [ERROR] Unable to find 'jsinterop/annotations/Annotations.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?

您还需要 jsinterop-annotations JAR 和源代码 JAR。从 https://oss.sonatype.org/content/repositories/google-snapshots/com/google/jsinterop/jsinterop-annotations/1.0.0-SNAPSHOT/ (files ending with .jar and -sources.jar, e.g. jsinterop-annotations-1.0.0-20160111.054530-32.jar and jsinterop-annotations-1.0.0-20160111.054530-32-sources.jar)

下载