1

现在我在我的项目中使用 GWT 1.7,我需要升级到 GWT 2。我还有:

GXT 2.0.1 Maven 2.2.1 gwt-maven-plugin 1.1 maven-compiler-plugin 2.0.2(它的源和目标配置是1.6)

所以我把GWT版本改成了2.0.4,但是我的GXT版本好像和它不兼容。我发现的 GXT 的最低版本是 2.2.5,但有了它我的项目看起来......很奇怪 :) 那么,它有旧的兼容版本吗?

而且我的 Maven 也不适用于新的 gwt。我尝试了不同版本的 gwt-mavten-plugin,它们都抛出了不同的错误。也许我必须使用不同的 maven 或 maven-compiler-plugin?

更新

GWT:2.0.4,GXT:2.2.5,gwt-maven-plugin 2.1.0,maven-compiler-plugin 2.1

项目在 Idea 中构建,但是当我运行 mvn clean install 时:

    [WARNING] You're project declares dependency on gwt-user 2.0.4. This plugin is designed for version 2.1.0
[WARNING] You're project declares dependency on gwt-user 2.0.4. This plugin is designed for version 2.1.0
[INFO] Compiling module com.dataswell.portal.ui.Application
[INFO]    Validating newly compiled units
[INFO]       [ERROR] Errors in 'jar:file:/home/vskovalenko/.m2/repository/com/google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar!/com/google/gwt/core/client/impl/CrossSiteIframeLoadingStrategy.java'
[INFO]          [ERROR] Line 21: The import com.google.gwt.core.client.impl.AsyncFragmentLoader.LoadTerminatedHandler cannot be resolved
[INFO]          [ERROR] Line 36: The type CrossSiteIframeLoadingStrategy must implement the inherited abstract method AsyncFragmentLoader.LoadingStrategy.startLoadingFragment(int, AsyncFragmentLoader.LoadErrorHandler)
[INFO]          [ERROR] Line 99: LoadTerminatedHandler cannot be resolved to a type
[INFO]          [ERROR] Line 136: LoadTerminatedHandler cannot be resolved to a type
[INFO]       [ERROR] Errors in 'jar:file:/home/vskovalenko/.m2/repository/com/google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar!/com/google/gwt/core/client/impl/CrossSiteLoadingStrategy.java'
[INFO]          [ERROR] Line 21: The import com.google.gwt.core.client.impl.AsyncFragmentLoader.LoadTerminatedHandler cannot be resolved
[INFO]          [ERROR] Line 34: The type CrossSiteLoadingStrategy must implement the inherited abstract method AsyncFragmentLoader.LoadingStrategy.startLoadingFragment(int, AsyncFragmentLoader.LoadErrorHandler)
[INFO]          [ERROR] Line 97: LoadTerminatedHandler cannot be resolved to a type
[INFO]          [ERROR] Line 153: LoadTerminatedHandler cannot be resolved to a type
[INFO]       [ERROR] Errors in 'jar:file:/home/vskovalenko/.m2/repository/com/google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar!/com/google/gwt/core/client/impl/XhrLoadingStrategy.java'
[INFO]          [ERROR] Line 18: The type com.google.gwt.core.client.impl.AsyncFragmentLoader.HttpDownloadFailure is not visible
[INFO]          [ERROR] Line 19: The import com.google.gwt.core.client.impl.AsyncFragmentLoader.HttpInstallFailure cannot be resolved
[INFO]          [ERROR] Line 20: The import com.google.gwt.core.client.impl.AsyncFragmentLoader.LoadTerminatedHandler cannot be resolved
[INFO]          [ERROR] Line 50: The type XhrLoadingStrategy must implement the inherited abstract method AsyncFragmentLoader.LoadingStrategy.startLoadingFragment(int, AsyncFragmentLoader.LoadErrorHandler)
[INFO]          [ERROR] Line 129: LoadTerminatedHandler cannot be resolved to a type
[INFO]          [ERROR] Line 131: LoadTerminatedHandler cannot be resolved to a type
[INFO]          [ERROR] Line 133: LoadTerminatedHandler cannot be resolved to a type
[INFO]          [ERROR] Line 164: LoadTerminatedHandler cannot be resolved to a type
[INFO]          [ERROR] Line 198: LoadTerminatedHandler cannot be resolved to a type
[INFO]          [ERROR] Line 219: LoadTerminatedHandler cannot be resolved to a type
[INFO]          [ERROR] Line 249: HttpInstallFailure cannot be resolved to a type
[INFO]          [ERROR] Line 253: HttpDownloadFailure cannot be resolved to a type
[INFO]       [ERROR] Errors in 'jar:file:/home/vskovalenko/.m2/repository/com/google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar!/com/google/gwt/core/client/prefetch/Prefetcher.java'
[INFO]          [ERROR] Line 55: The method setPrefetchQueue(int[]) is undefined for the type AsyncFragmentLoader
[INFO]          [ERROR] Line 74: The method startPrefetching() is undefined for the type AsyncFragmentLoader
[INFO]          [ERROR] Line 86: The method stopPrefetching() is undefined for the type AsyncFragmentLoader
[INFO]       [ERROR] Errors in 'jar:file:/home/vskovalenko/.m2/repository/com/google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar!/com/google/gwt/core/client/prefetch/RunAsyncCode.java'
[INFO]          [ERROR] Line 63: The method isAlreadyLoaded(int) is undefined for the type AsyncFragmentLoader
[INFO]       [ERROR] Errors in 'jar:file:/home/vskovalenko/.m2/repository/com/google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar!/com/google/gwt/core/client/testing/StubScheduler.java'
[INFO]          [ERROR] Line 51: The method scheduleEntry(Scheduler.RepeatingCommand) of type StubScheduler must override or implement a supertype method
[INFO]          [ERROR] Line 56: The method scheduleEntry(Scheduler.ScheduledCommand) of type StubScheduler must override or implement a supertype method
[INFO]          [ERROR] Line 61: The method scheduleFinally(Scheduler.RepeatingCommand) of type StubScheduler must override or implement a supertype method
[INFO]       [ERROR] Errors in 'jar:file:/home/vskovalenko/.m2/repository/com/google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar!/com/google/gwt/i18n/client/AutoDirectionHandler.java'
[INFO]          [ERROR] Line 35: No source code is available for type com.google.gwt.i18n.shared.HasDirectionEstimator; did you forget to inherit a required module?
[INFO]          [ERROR] Line 74: No source code is available for type com.google.gwt.i18n.shared.WordCountDirectionEstimator; did you forget to inherit a required module?
[INFO]          [ERROR] Line 103: No source code is available for type com.google.gwt.i18n.shared.DirectionEstimator; did you forget to inherit a required module?
[INFO]       [ERROR] Errors in 'jar:file:/home/vskovalenko/.m2/repository/com/google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar!/com/google/gwt/i18n/client/BidiPolicy.java'
[INFO]          [ERROR] Line 29: The method hasAnyRTL() is undefined for the type LocaleInfo
[INFO]       [ERROR] Errors in 'jar:file:/home/vskovalenko/.m2/repository/com/google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar!/com/google/gwt/i18n/client/impl/CurrencyDataJso.java'
[INFO]          [ERROR] Line 37: Only one JavaScriptObject type may implement the methods of an interface that declared methods. The interface (com.google.gwt.i18n.client.CurrencyData) is implemented by both (com.google.gwt.i18n.client.impl.CurrencyDataImpl) and (com.google.gwt.i18n.client.impl.CurrencyDataJso)
[INFO]          [ERROR] Line 51: The method getDefaultFractionDigits() in the type CurrencyDataImpl is not applicable for the arguments (int)
[INFO]          [ERROR] Line 59: The method isDeprecated() in the type CurrencyDataImpl is not applicable for the arguments (int)
[INFO]          [ERROR] Line 63: The method isSpaceForced() in the type CurrencyDataImpl is not applicable for the arguments (int)
[INFO]          [ERROR] Line 67: The method isSpacingFixed() in the type CurrencyDataImpl is not applicable for the arguments (int)
[INFO]          [ERROR] Line 71: The method isSymbolPositionFixed() in the type CurrencyDataImpl is not applicable for the arguments (int)
[INFO]          [ERROR] Line 75: The method isSymbolPrefix() in the type CurrencyDataImpl is not applicable for the arguments (int)
[INFO]       [WARN] Warnings in 'jar:file:/home/vskovalenko/.m2/repository/com/google/gwt/gwt-dev/2.1.0/gwt-dev-2.1.0.jar!/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Cast.java'
[INFO]          [WARN] Line 29: Referencing field 'java.lang.Object.castableTypeMap': unable to resolve field, expect subsequent failures
[INFO]          [WARN] Line 29: Referencing field 'java.lang.Object.castableTypeMap': unable to resolve field, expect subsequent failures
[INFO]          [WARN] Line 38: Referencing field 'java.lang.Object.castableTypeMap': unable to resolve field, expect subsequent failures
[INFO]          [WARN] Line 38: Referencing field 'java.lang.Object.castableTypeMap': unable to resolve field, expect subsequent failures
[INFO]       [WARN] Warnings in 'jar:file:/home/vskovalenko/.m2/repository/com/google/gwt/gwt-dev/2.1.0/gwt-dev-2.1.0.jar!/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Util.java'
[INFO]          [WARN] Line 27: Referencing field 'java.lang.Object.castableTypeMap': unable to resolve field, expect subsequent failures
[INFO]          [WARN] Line 35: Referencing field 'java.lang.Object.castableTypeMap': unable to resolve field, expect subsequent failures
[INFO]       [ERROR] Errors in 'jar:file:/home/vskovalenko/.m2/repository/com/google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar!/com/google/gwt/user/client/ui/DoubleBox.java'
[INFO]          [ERROR] Line 28: No source code is available for type com.google.gwt.text.client.DoubleRenderer; did you forget to inherit a required module?
[INFO]          [ERROR] Line 29: No source code is available for type com.google.gwt.text.client.DoubleParser; did you forget to inherit a required module?
[INFO]       [ERROR] Errors in 'jar:file:/home/vskovalenko/.m2/repository/com/google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar!/com/google/gwt/user/client/ui/HasAutoHorizontalAlignment.java'
[INFO]          [ERROR] Line 30: AutoHorizontalAlignmentConstant cannot be resolved to a type
[INFO]          [ERROR] Line 30: No source code is available for type AutoHorizontalAlignmentConstant; did you forget to inherit a required module?
[INFO]          [ERROR] Line 31: AutoHorizontalAlignmentConstant cannot be resolved to a type
[INFO]          [ERROR] Line 38: AutoHorizontalAlignmentConstant cannot be resolved to a type
[INFO]          [ERROR] Line 38: No source code is available for type AutoHorizontalAlignmentConstant; did you forget to inherit a required module?
[INFO]          [ERROR] Line 39: AutoHorizontalAlignmentConstant cannot be resolved to a type
[INFO]          [ERROR] Line 54: AutoHorizontalAlignmentConstant cannot be resolved to a type
[INFO]          [ERROR] Line 54: No source code is available for type AutoHorizontalAlignmentConstant; did you forget to inherit a required module?
[INFO]          [ERROR] Line 77: AutoHorizontalAlignmentConstant cannot be resolved to a type
[INFO]       [ERROR] Errors in 'jar:file:/home/vskovalenko/.m2/repository/com/google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar!/com/google/gwt/user/client/ui/HasDirectionalSafeHtml.java'
[INFO]          [ERROR] Line 26: No source code is available for type com.google.gwt.safehtml.client.HasSafeHtml; did you forget to inherit a required module?
[INFO]          [ERROR] Line 33: No source code is available for type com.google.gwt.safehtml.shared.SafeHtml; did you forget to inherit a required module?
[INFO]       [ERROR] Errors in 'jar:file:/home/vskovalenko/.m2/repository/com/google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar!/com/google/gwt/user/client/ui/IntegerBox.java'
[INFO]          [ERROR] Line 27: No source code is available for type com.google.gwt.text.client.IntegerRenderer; did you forget to inherit a required module?
[INFO]          [ERROR] Line 28: No source code is available for type com.google.gwt.text.client.IntegerParser; did you forget to inherit a required module?
[INFO]       [ERROR] Errors in 'jar:file:/home/vskovalenko/.m2/repository/com/google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar!/com/google/gwt/user/client/ui/LongBox.java'
[INFO]          [ERROR] Line 28: No source code is available for type com.google.gwt.text.client.LongRenderer; did you forget to inherit a required module?
[INFO]          [ERROR] Line 29: No source code is available for type com.google.gwt.text.client.LongParser; did you forget to inherit a required module?
[INFO]       [ERROR] Errors in 'jar:file:/home/vskovalenko/.m2/repository/com/google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar!/com/google/gwt/user/client/ui/ValueBox.java'
[INFO]          [ERROR] Line 42: No source code is available for type com.google.gwt.text.shared.Renderer<T>; did you forget to inherit a required module?
[INFO]          [ERROR] Line 42: No source code is available for type com.google.gwt.text.shared.Parser<T>; did you forget to inherit a required module?
[INFO]       [ERROR] Errors in 'jar:file:/home/vskovalenko/.m2/repository/com/google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar!/com/google/gwt/user/client/ui/ValueBoxBase.java'
[INFO]          [ERROR] Line 50: No source code is available for type com.google.gwt.i18n.shared.HasDirectionEstimator; did you forget to inherit a required module?
[INFO]          [ERROR] Line 51: No source code is available for type com.google.gwt.editor.client.IsEditor<E>; did you forget to inherit a required module?
[INFO]          [ERROR] Line 51: No source code is available for type com.google.gwt.editor.ui.client.adapters.ValueBoxEditor<T>; did you forget to inherit a required module?
[INFO]          [ERROR] Line 84: No source code is available for type com.google.gwt.text.shared.Parser<T>; did you forget to inherit a required module?
[INFO]          [ERROR] Line 85: No source code is available for type com.google.gwt.text.shared.Renderer<T>; did you forget to inherit a required module?
[INFO]          [ERROR] Line 159: No source code is available for type com.google.gwt.i18n.shared.DirectionEstimator; did you forget to inherit a required module?
[INFO]       [ERROR] Errors in 'jar:file:/home/vskovalenko/.m2/repository/com/google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar!/com/google/gwt/user/client/ui/ValueListBox.java'
[INFO]          [ERROR] Line 45: No source code is available for type com.google.gwt.editor.client.IsEditor<E>; did you forget to inherit a required module?
[INFO]          [ERROR] Line 45: No source code is available for type com.google.gwt.editor.client.adapters.TakesValueEditor<T>; did you forget to inherit a required module?
[INFO]          [ERROR] Line 49: No source code is available for type com.google.gwt.text.shared.Renderer<T>; did you forget to inherit a required module?
[INFO]          [ERROR] Line 50: No source code is available for type com.google.gwt.view.client.ProvidesKey<T>; did you forget to inherit a required module?
[INFO]          [ERROR] Line 55: No source code is available for type com.google.gwt.view.client.SimpleKeyProvider<T>; did you forget to inherit a required module?
[INFO]          [ERROR] Line 84: The method of(TakesValue<T>) in the type TakesValueEditor is not applicable for the arguments (ValueListBox<T>)
[INFO]       [ERROR] Errors in 'jar:file:/home/vskovalenko/.m2/repository/com/google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar!/com/google/gwt/user/client/ui/ValuePicker.java'
[INFO]          [ERROR] Line 40: No source code is available for type com.google.gwt.editor.client.IsEditor<E>; did you forget to inherit a required module?
[INFO]          [ERROR] Line 40: No source code is available for type com.google.gwt.editor.client.LeafValueEditor<T>; did you forget to inherit a required module?
[INFO]          [ERROR] Line 42: No source code is available for type com.google.gwt.cell.client.AbstractCell<C>; did you forget to inherit a required module?
[INFO]          [ERROR] Line 43: No source code is available for type com.google.gwt.text.shared.Renderer<T>; did you forget to inherit a required module?
[INFO]          [ERROR] Line 50: No source code is available for type com.google.gwt.safehtml.shared.SafeHtmlBuilder; did you forget to inherit a required module?
[INFO]          [ERROR] Line 57: No source code is available for type com.google.gwt.user.cellview.client.CellList<T>; did you forget to inherit a required module?
[INFO]          [ERROR] Line 58: No source code is available for type com.google.gwt.view.client.SingleSelectionModel<T>; did you forget to inherit a required module?
[INFO]          [ERROR] Line 64: No source code is available for type com.google.gwt.view.client.SelectionChangeEvent.Handler; did you forget to inherit a required module?
[INFO]          [ERROR] Line 65: No source code is available for type com.google.gwt.view.client.SelectionChangeEvent; did you forget to inherit a required module?
[INFO]          [ERROR] Line 83: No source code is available for type com.google.gwt.editor.client.adapters.TakesValueEditor<T>; did you forget to inherit a required module?
[INFO]          [ERROR] Line 83: The method of(TakesValue<T>) in the type TakesValueEditor is not applicable for the arguments (ValuePicker<T>)
[INFO]          [ERROR] Line 90: The method asWidget() of type ValuePicker<T> must override or implement a supertype method
[INFO]       [ERROR] Errors in 'jar:file:/home/vskovalenko/.m2/repository/com/google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar!/com/google/gwt/user/client/ui/impl/RichTextAreaImplOldMozilla.java'
[INFO]          [ERROR] Line 39: The method setFirstFocusImpl() of type RichTextAreaImplOldMozilla must override or implement a supertype method
[INFO]          [ERROR] Line 44: The method setFocusImpl(boolean) of type RichTextAreaImplOldMozilla must override or implement a supertype method
[INFO]          [ERROR] Line 47: The method setFocusImpl(boolean) is undefined for the type RichTextAreaImplMozilla
[INFO]       [WARN] Warnings in 'jar:file:/home/vskovalenko/.m2/repository/com/google/gwt/gwt-user/2.0.4/gwt-user-2.0.4.jar!/com/google/gwt/emul/java/util/Arrays.java'
[INFO]          [WARN] Line 1348: Referencing method 'com.google.gwt.lang.LongLib.compare([D[D)': unable to resolve method, expect subsequent failures
[INFO]          [WARN] Line 1358: Referencing method 'com.google.gwt.lang.LongLib.compare([D[D)': unable to resolve method, expect subsequent failures
[INFO]       [ERROR] Errors in 'jar:file:/home/vskovalenko/.m2/repository/com/google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar!/com/google/gwt/emul/java/util/logging/Level.java'
[INFO]          [ERROR] Line 31: No source code is available for type com.google.gwt.logging.impl.LevelImpl; did you forget to inherit a required module?
[INFO]          [ERROR] Line 31: No source code is available for type com.google.gwt.logging.impl.LevelImplNull; did you forget to inherit a required module?
[INFO]       [ERROR] Errors in 'jar:file:/home/vskovalenko/.m2/repository/com/google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar!/com/google/gwt/emul/java/util/logging/Logger.java'
[INFO]          [ERROR] Line 28: No source code is available for type com.google.gwt.logging.impl.LoggerImpl; did you forget to inherit a required module?
[INFO]          [ERROR] Line 28: No source code is available for type com.google.gwt.logging.impl.LoggerImplNull; did you forget to inherit a required module?
[INFO]    [ERROR] Errors in 'jar:file:/home/vskovalenko/.m2/repository/com/google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar!/com/google/gwt/core/client/prefetch/RunAsyncCode.java'
[INFO]       [ERROR] Line 63:  The method isAlreadyLoaded(int) is undefined for the type AsyncFragmentLoader
[INFO]    Scanning for additional dependencies: file:/home/vskovalenko/dataswell/trunk/source/portal/ui/src/main/java/com/dataswell/portal/ui/client/account/rpc/AccountServiceAsync.java
[INFO]       Adding '89' new generated units
[INFO]          Validating newly compiled units
[INFO]             [WARN] Warnings in '/home/vskovalenko/dataswell/trunk/source/portal/ui/target/.generated/com/dataswell/portal/ui/client/account/rpc/AccountService_TypeSerializer.java'
[INFO]                [WARN] Line 283: Referencing deprecated class 'com.google.gwt.user.client.rpc.SerializableException'
[INFO]    Scanning for additional dependencies: file:/home/vskovalenko/dataswell/trunk/source/portal/ui/src/main/java/com/dataswell/portal/ui/client/dataset/rpc/DatasetServiceAsync.java
[INFO]       Adding '22' new generated units
[INFO]          Validating newly compiled units
[INFO]             [WARN] Warnings in '/home/vskovalenko/dataswell/trunk/source/portal/ui/target/.generated/com/dataswell/portal/ui/client/dataset/rpc/DatasetService_TypeSerializer.java'
[INFO]                [WARN] Line 153: Referencing deprecated class 'com.google.gwt.user.client.ui.ChangeListenerCollection'
[INFO]                [WARN] Line 158: Referencing deprecated class 'com.google.gwt.user.client.ui.ClickListenerCollection'
[INFO]                [WARN] Line 163: Referencing deprecated class 'com.google.gwt.user.client.ui.FocusListenerCollection'
[INFO]                [WARN] Line 168: Referencing deprecated class 'com.google.gwt.user.client.ui.FormHandlerCollection'
[INFO]                [WARN] Line 173: Referencing deprecated class 'com.google.gwt.user.client.ui.KeyboardListenerCollection'
[INFO]                [WARN] Line 178: Referencing deprecated class 'com.google.gwt.user.client.ui.LoadListenerCollection'
[INFO]                [WARN] Line 183: Referencing deprecated class 'com.google.gwt.user.client.ui.MouseListenerCollection'
[INFO]                [WARN] Line 188: Referencing deprecated class 'com.google.gwt.user.client.ui.MouseWheelListenerCollection'
[INFO]                [WARN] Line 193: Referencing deprecated class 'com.google.gwt.user.client.ui.PopupListenerCollection'
[INFO]                [WARN] Line 198: Referencing deprecated class 'com.google.gwt.user.client.ui.ScrollListenerCollection'
[INFO]                [WARN] Line 203: Referencing deprecated class 'com.google.gwt.user.client.ui.TabListenerCollection'
[INFO]                [WARN] Line 208: Referencing deprecated class 'com.google.gwt.user.client.ui.TableListenerCollection'
[INFO]                [WARN] Line 213: Referencing deprecated class 'com.google.gwt.user.client.ui.TreeListenerCollection'
[INFO]    Scanning for additional dependencies: file:/home/vskovalenko/dataswell/trunk/source/portal/ui/src/main/java/com/dataswell/portal/ui/client/EdgarOnlineServiceAsync.java
[INFO]       Adding '7' new generated units
[INFO]          Validating newly compiled units
[INFO]             [WARN] Warnings in '/home/vskovalenko/dataswell/trunk/source/portal/ui/target/.generated/com/dataswell/portal/ui/client/EdgarOnlineService_TypeSerializer.java'
[INFO]                [WARN] Line 96: Referencing deprecated class 'com.google.gwt.user.client.ui.ChangeListenerCollection'
[INFO]                [WARN] Line 101: Referencing deprecated class 'com.google.gwt.user.client.ui.ClickListenerCollection'
[INFO]                [WARN] Line 106: Referencing deprecated class 'com.google.gwt.user.client.ui.FocusListenerCollection'
[INFO]                [WARN] Line 111: Referencing deprecated class 'com.google.gwt.user.client.ui.FormHandlerCollection'
[INFO]                [WARN] Line 116: Referencing deprecated class 'com.google.gwt.user.client.ui.KeyboardListenerCollection'
[INFO]                [WARN] Line 121: Referencing deprecated class 'com.google.gwt.user.client.ui.LoadListenerCollection'
[INFO]                [WARN] Line 126: Referencing deprecated class 'com.google.gwt.user.client.ui.MouseListenerCollection'
[INFO]                [WARN] Line 131: Referencing deprecated class 'com.google.gwt.user.client.ui.MouseWheelListenerCollection'
[INFO]                [WARN] Line 136: Referencing deprecated class 'com.google.gwt.user.client.ui.PopupListenerCollection'
[INFO]                [WARN] Line 141: Referencing deprecated class 'com.google.gwt.user.client.ui.ScrollListenerCollection'
[INFO]                [WARN] Line 146: Referencing deprecated class 'com.google.gwt.user.client.ui.TabListenerCollection'
[INFO]                [WARN] Line 151: Referencing deprecated class 'com.google.gwt.user.client.ui.TableListenerCollection'
[INFO]                [WARN] Line 156: Referencing deprecated class 'com.google.gwt.user.client.ui.TreeListenerCollection'
[INFO]    [ERROR] Cannot proceed due to previous errors
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
4

2 回答 2

1

它在 gwt-maven-plugin 的常见问题解答中提到 - http://mojo.codehaus.org/gwt-maven-plugin/faq.html

如何设置 GWT 的版本来编译我的项目?

gwt-maven-plugin 绑定到 GWT SDK 的一个版本。gwt-maven-plugin 必须与 GWT DSK 版本匹配。要将 Maven 与GWT 2.1 之前的GWT 版本一起使用,请参阅use gwt-maven-plugin 1.2并阅读文档。

对于 GWT 和 GXT 兼容性参考 GXT 论坛

http://www.sencha.com/forum/showthread.php?147726-Ext-GWT-2.2.5-Now-Available

于 2013-01-30T07:30:03.753 回答
0

搜索了一段时间后,我找到了一个包含“gxt2.2.5-gwt22.jar”工件的存储库,我写这个是因为我在stackoverflow上看到了一些线程,我在搜索时从谷歌重定向,所以对于有困难的人来说将 jar 集成到您的项目 pom.xml 中。

将此添加到依赖项中:

<dependency>
   <groupId>com.extjs</groupId>
   <artifactId>gxt</artifactId>
   <version>2.2.5-gwt22</version>
</dependency>

并添加此存储库:

<repository>
   <id>maven.ucdavis.edu-releases</id>
   <name>maven.ucdavis.edu-releases</name>
   <url>http://maven.ucdavis.edu:80/artifactory/sakai-local</url>
</repository>
于 2013-03-30T21:35:45.477 回答