Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
聚合物元素don';无法使用最新的GWT2.8快照_Gwt_Maven 3_Polymer 1.0 - Fatal编程技术网

聚合物元素don';无法使用最新的GWT2.8快照

聚合物元素don';无法使用最新的GWT2.8快照,gwt,maven-3,polymer-1.0,Gwt,Maven 3,Polymer 1.0,最新的GWT2.8快照似乎已经取消了对 -XjsInteropMode标志。有一段时间大家都知道这会发生。新国旗是 -生成JSINTEROPEXPORTS。但是,聚合物似乎没有认识到这一点。我得到了一大堆: [INFO] [ERROR] Errors in 'jar:file:/C:/Users/ntroncoso/.m2/repository/com/vaadin/polymer/vaadin-gwt-polymer-elements/1.2.1.0/vaadin-gwt-p

最新的GWT2.8快照似乎已经取消了对 -XjsInteropMode标志。有一段时间大家都知道这会发生。新国旗是 -生成JSINTEROPEXPORTS。但是,聚合物似乎没有认识到这一点。我得到了一大堆:

[INFO]          [ERROR] Errors in 'jar:file:/C:/Users/ntroncoso/.m2/repository/com/vaadin/polymer/vaadin-gwt-polymer-elements/1.2.1.0/vaadin-gwt-polymer-elements-1.2.1.0.jar!/com/vaadin/polymer/iron/event/IronActivateEvent.java'
[INFO]             [ERROR] Line 36: JsProperty cannot be resolved to a type
[INFO]             [ERROR] Line 31: JsProperty cannot be resolved to a type
[INFO]             [ERROR] Line 16: JsType cannot be resolved to a type
[INFO]             [ERROR] Line 22: JsProperty cannot be resolved to a type
[INFO]             [ERROR] Line 25: JsType cannot be resolved to a type
[INFO]             [ERROR] Line 11: The import com.google.gwt.core.client.js cannot be resolved
[INFO]             [ERROR] Line 10: The import com.google.gwt.core.client.js cannot be resolved
更换标志后。我还需要为Polymer做些什么才能找到jsInterop吗


这种变化是不可避免的,所以说切换到2.7或更旧的2.8版本不是一个合适的解决方案,除非我只是等待Vaadin更新他们的终端。有聚合物快照回购可用吗?

在进一步挖掘之后,我能够通过以下途径找到临时解决方案:

使用manalo的冻结快照,我的项目将生成。您需要将其添加到maven settings.xml中:

<repository>
    <id>gwt-snapshots-tmp-repo</id>
    <url>https://github.com/manolo/gwt-snapshot/raw/master/</url>
    <snapshots><enabled>true</enabled></snapshots>
    <releases><enabled>true</enabled></releases>
</repository>

gwt快照tmp回购
https://github.com/manolo/gwt-snapshot/raw/master/
真的
真的
并将GWT版本更改为2.8.0.VC-SNAPSHOT

根据这些问题:


即将发布gwt polymer elements来解决这个问题。

在进一步挖掘之后,我通过以下途径找到了一个临时解决方案:

使用manalo的冻结快照,我的项目将生成。您需要将其添加到maven settings.xml中:

<repository>
    <id>gwt-snapshots-tmp-repo</id>
    <url>https://github.com/manolo/gwt-snapshot/raw/master/</url>
    <snapshots><enabled>true</enabled></snapshots>
    <releases><enabled>true</enabled></releases>
</repository>

gwt快照tmp回购
https://github.com/manolo/gwt-snapshot/raw/master/
真的
真的
并将GWT版本更改为2.8.0.VC-SNAPSHOT

根据这些问题:


即将发布gwt polymer elements来解决这个问题。

在我的例子中,错误出现在尝试将vaadin polymer包装器版本1.2.3.0与gwt 2.7一起使用时

即使将jsInterOp设置为JS,编译也不起作用

切换到gwt 2.8.0-beta1,gwt:compile任务最终能够处理: 导入jsinterop.annotations.JsType

在com.vaadin.polymer.paper元素中


检查gwt版本(即编译器)与web组件库之间的兼容性。

在我的例子中,错误是在尝试将vaadin polymer包装器版本1.2.3.0与gwt 2.7一起使用时出现的

即使将jsInterOp设置为JS,编译也不起作用

切换到gwt 2.8.0-beta1,gwt:compile任务最终能够处理: 导入jsinterop.annotations.JsType

在com.vaadin.polymer.paper元素中


检查您的gwt版本(即编译器)与web组件库之间的兼容性。

如果您不想恢复到较旧的gwt,则必须等待较新的gwt。看起来Sonatype OSSRH上有快照,最后一张是今天的。如果你不想恢复到旧的GWT,那么你必须等待更新的GWT聚合物元素。Sonatype OSSRH似乎有快照,最后一张是今天拍的……现在是现场直播:……现在是现场直播: