gpt4 book ai didi

java - 无法从 Maven Central 编译项目

转载 作者:行者123 更新时间:2023-12-02 02:10:02 25 4
gpt4 key购买 nike

我正在尝试从 Maven Central 编译旧版本 (2.4.0) 的 gwt-servlet 项目。我已完成以下操作:

1) 从 Maven Central 下载 gwt-servlet-2.4.0-sources.jar

2) 将此源 .jar 提取到空的 C:/workingdir/src/main/java 目录中。

3) 从 Maven Central 下载 gwt-servlet-2.4.0.pomC:/workingdir/pom.xml

4)执行mvn clean,然后执行mvn install。

在 mvn install 中,我从编译器收到 100 个错误和一些警告:

$ mvn install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building gwt-servlet 2.4.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (enforce-maven) @ gwt-servlet ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ gwt-servlet ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\workingdir\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ gwt-servlet ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3041 source files to C:\workingdir\target\classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/rpc/server/CommandSerializationUtil.java:[36,16] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/resources/rebind/context/AbstractResourceContext.java:[43,13] sun.misc.BASE64Encoder is internal proprietary API and may be removed in a future release
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/resources/rebind/context/AbstractResourceContext.java:[43,46] sun.misc.BASE64Encoder is internal proprietary API and may be removed in a future release
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/rpc/server/CommandSerializationUtil.java:[438,24] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/rpc/server/CommandSerializationUtil.java:[442,5] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/rpc/server/CommandSerializationUtil.java:[444,17] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/rpc/server/CommandSerializationUtil.java:[446,22] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/AttributeParsers.java: Some input files use or override a deprecated API.
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/AttributeParsers.java: Recompile with -Xlint:deprecation for details.
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/emul/java/util/ArrayList.java: Some input files use unchecked or unsafe operations.
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/emul/java/util/ArrayList.java: Recompile with -Xlint:unchecked for details.
[WARNING] Some messages have been simplified; recompile with -Xdiags:verbose to get full output
[INFO] 12 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/validation/super/com/google/gwt/validation/client/GwtMessageInterpolator.java:[25,8] duplicate class: com.google.gwt.validation.client.GwtMessageInterpolator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/user/translatable/com/google/gwt/user/client/rpc/core/java/util/LinkedHashMap_CustomFieldSerializer.java:[29,14] duplicate class: com.google.gwt.user.client.rpc.core.java.util.LinkedHashMap_Custo mFieldSerializer
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/regexp/super/com/google/gwt/regexp/shared/MatchResult.java:[23,8] duplicate class: com.google.gwt.regexp.shared.MatchResult
[ERROR] /C:/workingdir/src/main/java/com/google/web/bindery/autobean/super/com/google/web/bindery/autobean/shared/impl/StringQuoter.java:[33,8] duplicate class: com.google.web.bindery.autobean.shared.impl.StringQuoter
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/rpc/client/impl/ClientWriterFactory.java:[35,8] duplicate class: com.google.gwt.rpc.client.impl.ClientWriterFactory
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/junit/client/GWTTestCase.java:[48,17] duplicate class: com.google.gwt.junit.client.GWTTestCase
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/benchmarks/translatable/com/google/gwt/benchmarks/client/Benchmark.java:[24,17] duplicate class: com.google.gwt.benchmarks.client.Benchmark
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/user/client/rpc/impl/ReflectionHelper.java:[29,8] duplicate class: com.google.gwt.user.client.rpc.impl.ReflectionHelper
[ERROR] /C:/workingdir/src/main/java/com/google/web/bindery/autobean/super/com/google/web/bindery/autobean/shared/ValueCodexHelper.java:[21,1] duplicate class: com.google.web.bindery.autobean.shared.ValueCodexHelper
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/rpc/super/com/google/gwt/rpc/client/impl/EscapeUtil.java:[25,8] duplicate class: com.google.gwt.rpc.client.impl.EscapeUtil
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/validation/client/GwtConfiguration.java:[31,8] duplicate class: com.google.gwt.validation.client.GwtConfiguration
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/safehtml/super/com/google/gwt/safehtml/shared/SafeHtmlHostedModeUtils.java:[22,8] duplicate class: com.google.gwt.safehtml.shared.SafeHtmlHostedModeUtils
[ERROR] /C:/workingdir/src/main/java/com/google/web/bindery/requestfactory/super/com/google/web/bindery/requestfactory/shared/impl/MessageFactoryHolder.java:[24,8] duplicate class: com.google.web.bindery.requestfactory.shared.impl.MessageFactoryHo lder
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/junit/client/impl/GWTRunner.java:[31,8] duplicate class: com.google.gwt.junit.client.impl.GWTRunner
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/core/client/impl/WeakMapping.java:[30,8] duplicate class: com.google.gwt.core.client.impl.WeakMapping
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/regexp/shared/RegExp.java:[39,8] duplicate class: com.google.gwt.regexp.shared.RegExp
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/validation/client/spi/GwtConfigurationState.java:[27,8] duplicate class: com.google.gwt.validation.client.spi.GwtConfigurationState
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/safehtml/shared/SafeUriHostedModeUtils.java:[34,8] duplicate class: com.google.gwt.safehtml.shared.SafeUriHostedModeUtils
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/regexp/super/com/google/gwt/regexp/shared/SplitResult.java:[23,8] duplicate class: com.google.gwt.regexp.shared.SplitResult
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[19,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[20,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[68,27] cannot find symbol
symbol: class TreeLogger
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceContext.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceContext.java:[19,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceContext.java:[20,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[69,7] cannot find symbol
symbol: class JMethod
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[69,30] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[81,21] cannot find symbol
symbol: class TreeLogger
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ClientBundleFields.java:[18,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[82,41] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[88,15] cannot find symbol
symbol: class TreeLogger
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[89,14] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[96,13] cannot find symbol
symbol: class TreeLogger
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[97,14] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[104,16] cannot find symbol
symbol: class TreeLogger
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ClientBundleRequirements.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ClientBundleRequirements.java:[19,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[105,46] cannot find symbol
symbol: class JMethod
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[106,14] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceContext.java:[60,37] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.resources.ext.ResourceContext
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceContext.java:[79,14] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.resources.ext.ResourceContext
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceContext.java:[97,14] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.resources.ext.ResourceContext
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceContext.java:[115,3] cannot find symbol
symbol: class JClassType
location: interface com.google.gwt.resources.ext.ResourceContext
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceContext.java:[124,3] cannot find symbol
symbol: class GeneratorContext
location: interface com.google.gwt.resources.ext.ResourceContext
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ClientBundleFields.java:[44,17] cannot find symbol
symbol: class JType
location: interface com.google.gwt.resources.ext.ClientBundleFields
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ClientBundleFields.java:[60,17] cannot find symbol
symbol: class JType
location: interface com.google.gwt.resources.ext.ClientBundleFields
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ClientBundleRequirements.java:[40,14] cannot find symbol
symbol: class BadPropertyValueException
location: interface com.google.gwt.resources.ext.ClientBundleRequirements
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ClientBundleRequirements.java:[59,55] cannot find symbol
symbol: class BadPropertyValueException
location: interface com.google.gwt.resources.ext.ClientBundleRequirements
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ClientBundleRequirements.java:[94,25] cannot find symbol
symbol: class JClassType
location: interface com.google.gwt.resources.ext.ClientBundleRequirements
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/i18n/rebind/keygen/MD5KeyGenerator.java:[18,40] package com.google.gwt.util.tools.shared does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/StrictAttributeParser.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/StrictAttributeParser.java:[19,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/FieldReferenceConverter.java:[18,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/AttributeParser.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/MortalLogger.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/MortalLogger.java:[19,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[19,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[20,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[21,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[22,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/StrictAttributeParser.java:[68,17] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.attributeparsers.StrictAttributeParser
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/StrictAttributeParser.java:[70,60] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.attributeparsers.StrictAttributeParser
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/StrictAttributeParser.java:[84,44] cannot find symbol
symbol: class UnableToCompleteException
location: class com.google.gwt.uibinder.attributeparsers.StrictAttributeParser
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/FieldManager.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/FieldManager.java:[19,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/FieldManager.java:[20,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/FieldManager.java:[21,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/FieldManager.java:[22,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/AttributeParser.java:[34,14] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.uibinder.attributeparsers.AttributeParser
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/MortalLogger.java:[71,17] cannot find symbol
symbol: class TreeLogger
location: class com.google.gwt.uibinder.rebind.MortalLogger
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/MortalLogger.java:[73,23] cannot find symbol
symbol: class TreeLogger
location: class com.google.gwt.uibinder.rebind.MortalLogger
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/MortalLogger.java:[82,14] cannot find symbol
symbol: class UnableToCompleteException
location: class com.google.gwt.uibinder.rebind.MortalLogger
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/MortalLogger.java:[91,14] cannot find symbol
symbol: class UnableToCompleteException
location: class com.google.gwt.uibinder.rebind.MortalLogger
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/MortalLogger.java:[96,10] cannot find symbol
symbol: class TreeLogger
location: class com.google.gwt.uibinder.rebind.MortalLogger
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/MortalLogger.java:[114,38] package TreeLogger does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/AttributeParsers.java:[18,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/AttributeParsers.java:[19,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/AttributeParsers.java:[20,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/AttributeParsers.java:[21,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/BundleAttributeParsers.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/BundleAttributeParsers.java:[19,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/BundleAttributeParsers.java:[20,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/BundleAttributeParsers.java:[21,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[135,17] cannot find symbol
symbol: class TypeOracle
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[144,11] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[145,11] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[146,11] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[147,11] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[148,11] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[149,11] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[175,7] cannot find symbol
symbol: class TypeOracle
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[193,43] cannot find symbol
symbol: class UnableToCompleteException
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[214,37] cannot find symbol
symbol: class UnableToCompleteException
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[230,37] cannot find symbol
symbol: class UnableToCompleteException
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[249,47] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[250,14] cannot find symbol
symbol: class UnableToCompleteException
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[266,7] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[266,26] cannot find symbol
symbol: class UnableToCompleteException
location: class com.google.gwt.uibinder.rebind.XMLElement
[INFO] 100 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 32.595 s
[INFO] Finished at: 2018-05-03T01:21:33-04:00
[INFO] Final Memory: 20M/645M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project gwt-servlet: Compilation failure: Compilation failure:
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/validation/super/com/google/gwt/validation/client/GwtMessageInterpolator.java:[25,8] duplicate class: com.google.gwt.validation.client.GwtMessageInterpolator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/user/translatable/com/google/gwt/user/client/rpc/core/java/util/LinkedHashMap_CustomFieldSerializer.java:[29,14] duplicate class: com.google.gwt.user.client.rpc.core.java.util.LinkedHashMap_Custo mFieldSerializer
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/regexp/super/com/google/gwt/regexp/shared/MatchResult.java:[23,8] duplicate class: com.google.gwt.regexp.shared.MatchResult
[ERROR] /C:/workingdir/src/main/java/com/google/web/bindery/autobean/super/com/google/web/bindery/autobean/shared/impl/StringQuoter.java:[33,8] duplicate class: com.google.web.bindery.autobean.shared.impl.StringQuoter
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/rpc/client/impl/ClientWriterFactory.java:[35,8] duplicate class: com.google.gwt.rpc.client.impl.ClientWriterFactory
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/junit/client/GWTTestCase.java:[48,17] duplicate class: com.google.gwt.junit.client.GWTTestCase
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/benchmarks/translatable/com/google/gwt/benchmarks/client/Benchmark.java:[24,17] duplicate class: com.google.gwt.benchmarks.client.Benchmark
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/user/client/rpc/impl/ReflectionHelper.java:[29,8] duplicate class: com.google.gwt.user.client.rpc.impl.ReflectionHelper
[ERROR] /C:/workingdir/src/main/java/com/google/web/bindery/autobean/super/com/google/web/bindery/autobean/shared/ValueCodexHelper.java:[21,1] duplicate class: com.google.web.bindery.autobean.shared.ValueCodexHelper
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/rpc/super/com/google/gwt/rpc/client/impl/EscapeUtil.java:[25,8] duplicate class: com.google.gwt.rpc.client.impl.EscapeUtil
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/validation/client/GwtConfiguration.java:[31,8] duplicate class: com.google.gwt.validation.client.GwtConfiguration
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/safehtml/super/com/google/gwt/safehtml/shared/SafeHtmlHostedModeUtils.java:[22,8] duplicate class: com.google.gwt.safehtml.shared.SafeHtmlHostedModeUtils
[ERROR] /C:/workingdir/src/main/java/com/google/web/bindery/requestfactory/super/com/google/web/bindery/requestfactory/shared/impl/MessageFactoryHolder.java:[24,8] duplicate class: com.google.web.bindery.requestfactory.shared.impl.MessageFactoryHo lder
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/junit/client/impl/GWTRunner.java:[31,8] duplicate class: com.google.gwt.junit.client.impl.GWTRunner
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/core/client/impl/WeakMapping.java:[30,8] duplicate class: com.google.gwt.core.client.impl.WeakMapping
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/regexp/shared/RegExp.java:[39,8] duplicate class: com.google.gwt.regexp.shared.RegExp
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/validation/client/spi/GwtConfigurationState.java:[27,8] duplicate class: com.google.gwt.validation.client.spi.GwtConfigurationState

.. 等等

Maven 信息:

$ mvn -version
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T15:39:06-04:00)
Maven home: C:\tmp\apache-maven-3.5.0-bin\apache-maven-3.5.0
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_131\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

我尝试使用较旧的 jdk (jdk1.6.0_45) 运行 Maven,并尝试编译其他版本的 gwt-servlet,但没有成功。我错过了什么吗?我一整天都在尝试各种方法来编译它。谢谢。

最佳答案

您可能应该查看 2.4.0标记并构建它。

看来(我可能是错的)这个版本甚至不是用 Maven 构建的,至少没有看到 pom.xml 。因此,它不能使用 Maven 构建也就不足为奇了。

关于java - 无法从 Maven Central 编译项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50147569/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com