1

我正在使用 gwt-mosaic 0.4.0-rc4。在 a 之后我有以下错误mvn gwt:compile

[INFO] --- gwt-maven-plugin:2.3.0-1:compile (default) @ ... ---
[INFO] auto discovered modules [...]
[WARNING] Don't declare gwt-dev as a project dependency. This may introduce complex dependency conflicts
[INFO] Compiling module ...
[INFO]    Validating newly compiled units
[INFO]       [WARN] Warnings in 'jar:file:/home/seyz/.m2/repository/com/googlecode/gwtmosaic/gwt-mosaic/0.4.0-rc4/gwt-mosaic-0.4.0-rc4.jar!/org/gwt/mosaic/ui/client/impl/GlassPanelImpl.java'
[INFO]          [WARN] Line 52: Referencing deprecated class 'com.google.gwt.user.client.impl.DocumentRootImpl'
[INFO]          [WARN] Line 60: Referencing deprecated class 'com.google.gwt.user.client.impl.DocumentRootImpl'
[INFO]    Scanning for additional dependencies: jar:file:/home/seyz/.m2/repository/com/googlecode/gwtmosaic/gwt-mosaic/0.4.0-rc4/gwt-mosaic-0.4.0-rc4.jar!/org/gwt/mosaic/core/client/DOM.java
[INFO]       Computing all possible rebind results for 'org.gwt.mosaic.core.client.impl.DOMImpl'
[INFO]          Rebinding org.gwt.mosaic.core.client.impl.DOMImpl
[INFO]             Could not find an exact match rule. Using 'closest' rule <replace-with class='org.gwt.mosaic.core.client.impl.DOMImplIE8'/> 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 org.gwt.mosaic.core.client.impl.DOMImpl
[INFO]             Could not find an exact match rule. Using 'closest' rule <replace-with class='org.gwt.mosaic.core.client.impl.DOMImplIE8'/> 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]    Scanning for additional dependencies: jar:file:/home/seyz/.m2/repository/com/googlecode/gwtmosaic/gwt-mosaic/0.4.0-rc4/gwt-mosaic-0.4.0-rc4.jar!/org/gwt/mosaic/core/client/UserAgent.java
[INFO]       Computing all possible rebind results for 'org.gwt.mosaic.core.client.impl.UserAgentImpl'
[INFO]          Rebinding org.gwt.mosaic.core.client.impl.UserAgentImpl
[INFO]             Could not find an exact match rule. Using 'closest' rule <replace-with class='org.gwt.mosaic.core.client.impl.UserAgentImplIE6'/> 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 org.gwt.mosaic.core.client.impl.UserAgentImpl
[INFO]             Could not find an exact match rule. Using 'closest' rule <replace-with class='org.gwt.mosaic.core.client.impl.UserAgentImplIE6'/> 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]    Scanning for additional dependencies: jar:file:/home/seyz/.m2/repository/com/googlecode/gwtmosaic/gwt-dnd/0.4.0-rc4/gwt-dnd-0.4.0-rc4.jar!/com/allen_sauer/gwt/dnd/client/util/DOMUtil.java
[INFO]       Computing all possible rebind results for 'com.allen_sauer.gwt.dnd.client.util.impl.DOMUtilImpl'
[INFO]          Rebinding com.allen_sauer.gwt.dnd.client.util.impl.DOMUtilImpl
[INFO]             Could not find an exact match rule. Using 'closest' rule <replace-with class='com.allen_sauer.gwt.dnd.client.util.impl.DOMUtilImplIE6'/> 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.allen_sauer.gwt.dnd.client.util.impl.DOMUtilImpl
[INFO]             Could not find an exact match rule. Using 'closest' rule <replace-with class='com.allen_sauer.gwt.dnd.client.util.impl.DOMUtilImplIE6'/> 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]    Scanning for additional dependencies: jar:file:/home/seyz/.m2/repository/com/googlecode/gwtmosaic/gwt-mosaic/0.4.0-rc4/gwt-mosaic-0.4.0-rc4.jar!/org/gwt/mosaic/ui/client/GlassPanel.java
[INFO]       Computing all possible rebind results for 'org.gwt.mosaic.ui.client.impl.GlassPanelImpl'
[INFO]          Rebinding org.gwt.mosaic.ui.client.impl.GlassPanelImpl
[INFO]             Could not find an exact match rule. Using 'closest' rule <replace-with class='org.gwt.mosaic.ui.client.impl.GlassPanelImplIE6'/> 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 org.gwt.mosaic.ui.client.impl.GlassPanelImpl
[INFO]             Could not find an exact match rule. Using 'closest' rule <replace-with class='org.gwt.mosaic.ui.client.impl.GlassPanelImplIE6'/> 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]    Compiling 12 permutations
...

你知道这些错误是什么意思吗?

4

1 回答 1

2

这些都是警告,而不是错误。第一个,打印了两次,仅说明所引用的类在最新的 gwt 版本中已弃用,并且可能在未来的版本中不存在,因此库应删除对它的使用。

所有其他消息都表明已添加 IE9 支持,并且您的库不支持 IE9。因此,编译器正在使用另一个版本的 IE 代码构建 IE9 版本。

于 2011-08-29T13:59:33.610 回答