【问题标题】:Compatible versions of Gwt, Gxt and MavenGwt、Gxt 和 Maven 的兼容版本
【发布时间】:2013-01-13 00:56:10
【问题描述】:

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

GXT 2.0.1 Maven 2.2.1 gwt-maven-插件 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

【问题讨论】:

  • 一个问题,呃,请提问;并显示您认为正确的 gwt/gwt-maven-plugin 组合的错误。
  • 好的,我做到了,看看上面的错误
  • [WARNING] You're project declares dependency on gwt-user 2.0.4. This plugin is designed for version 2.1.0 是什么让您认为这是正确的组合? (顺便说一句,2.0.4 已经很老了——尽管比 1.7 还早——你不能升级到最新/体面的 GWT 版本吗?)
  • 我还没有找到 gwt 2.0.4 的 gwt-maven-plugin。我会尝试将 gwt 升级到 2.1,但我知道兼容性,因为项目真的很大,我不希望它完全崩溃。
  • gwt-maven-plugin 1.2 should work 与 GWT 2.0.4。从 2.1 开始,gwt-maven-plugin 是针对特定版本的 GWT 构建并兼容的,因此切换到相同的版本控制方案。

标签: gwt maven gxt gwt-maven-plugin maven-compiler-plugin


【解决方案1】:

在 gwt-maven-plugin 的 FAQ 中提到 - 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 版本一起使用,usegwt-maven-plugin 1.2 并阅读文档。

有关 GWT 和 GXT 兼容性参考 GXT 论坛

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

【讨论】:

    【解决方案2】:

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

    将此添加到依赖项中:

    <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>
    

    【讨论】:

    • 很高兴知道。我一定会把它添加到文档中。 :)
    • 请问您为什么使用旧版本?
    • 我不确定,但我在某处读到 2.2.5 版本可以免费使用?所以这是唯一的原因,如果我错了,请纠正我:=)
    • 3.0.1 是最新的公开版本,受 GPLv3 保护(加上例外情况,请参阅sencha.com/products/gxt/license 右下角的链接)或商业许可证。这与 GXT 2 的许可规则相同。请注意,3.0.1 仅适用于 GWT 2.4.0 及更高版本。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-01-28
    • 2017-04-22
    • 2016-07-08
    • 1970-01-01
    • 2019-08-19
    • 1970-01-01
    相关资源
    最近更新 更多