gpt4 book ai didi

java - 即使 ANT 构建没有给出错误,Maven 也会给出 MojoFailureException

转载 作者:行者123 更新时间:2023-12-02 05:53:03 24 4
gpt4 key购买 nike

当我在 eclipse clean+Build 中使用 ANT 时,它不会给我任何错误/问题。

但是,当我使用 Maven 构建时,会出现以下错误:

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building TFMWithSpark 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ TFMWithSpark ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ TFMWithSpark ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 35 source files to C:\Users\asoza\SparkWorkspace\TFMWithSpark\target\classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java: C:\Users\asoza\SparkWorkspace\TFMWithSpark\src\main\java\com\tfmwithspark\SparkVMACache.java uses or overrides a deprecated API.
[WARNING] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java: Recompile with -Xlint:deprecation for details.
[INFO] 2 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeDetailVO.java:[8,36] package com.splwg.base.api.datatypes does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeDetailVO.java:[9,74] package com.splwg.ccb.domain.banking.transactionFeed.transactionFeedAgg.vo does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeDetailVO.java:[10,74] package com.splwg.ccb.domain.banking.transactionFeed.transactionFeedAgg.vo does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeDetailVO.java:[11,74] package com.splwg.ccb.domain.banking.transactionFeed.transactionFeedAgg.vo does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeDetailVO.java:[41,13] cannot find symbol
symbol: class Bool
location: class com.tfmwithspark.SparkBillableChargeDetailVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeServiceQuantityDetailVO.java:[6,32] package com.splwg.ccb.api.lookup does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeDetailVO.java:[47,18] cannot find symbol
symbol: class BillableChargeLineDetailVO
location: class com.tfmwithspark.SparkBillableChargeDetailVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeDetailVO.java:[48,18] cannot find symbol
symbol: class BillableChargeCharacteristicDetailVO
location: class com.tfmwithspark.SparkBillableChargeDetailVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeDetailVO.java:[352,12] cannot find symbol
symbol: class Bool
location: class com.tfmwithspark.SparkBillableChargeDetailVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeDetailVO.java:[359,32] cannot find symbol
symbol: class Bool
location: class com.tfmwithspark.SparkBillableChargeDetailVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeDetailVO.java:[422,17] cannot find symbol
symbol: class BillableChargeLineDetailVO
location: class com.tfmwithspark.SparkBillableChargeDetailVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeDetailVO.java:[429,40] cannot find symbol
symbol: class BillableChargeLineDetailVO
location: class com.tfmwithspark.SparkBillableChargeDetailVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeDetailVO.java:[436,17] cannot find symbol
symbol: class BillableChargeCharacteristicDetailVO
location: class com.tfmwithspark.SparkBillableChargeDetailVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkBillableChargeDetailVO.java:[443,44] cannot find symbol
symbol: class BillableChargeCharacteristicDetailVO
location: class com.tfmwithspark.SparkBillableChargeDetailVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[22,25] package org.hibernate.cfg does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[23,30] package org.hibernate.internal does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[25,34] package com.splwg.base.api.service does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[26,38] package com.splwg.base.support.context does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[27,38] package com.splwg.base.support.context does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[28,38] package com.splwg.base.support.context does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[29,38] package com.splwg.base.support.context does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[30,38] package com.splwg.base.support.context does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[31,71] package com.splwg.ccb.domain.banking.transactionFeed.transactionFeedAgg does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[32,33] package com.splwg.ccb.domain.util does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[33,31] package com.splwg.shared.common does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[34,31] package com.splwg.shared.common does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[35,32] package com.splwg.shared.context does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[36,32] package com.splwg.shared.context does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[37,32] package com.splwg.shared.environ does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestView.java:[76,45] cannot find symbol
symbol: class FrameworkSession
location: class com.tfmwithspark.TestView
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkTransactionPriceItemDetailSummaryVO.java:[7,74] package com.splwg.ccb.domain.banking.transactionFeed.transactionFeedAgg.vo does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkTransactionPriceItemDetailSummaryVO.java:[68,13] cannot find symbol
symbol: class ErrorDetailVO
location: class com.tfmwithspark.SparkTransactionPriceItemDetailSummaryVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkTransactionPriceItemDetailSummaryVO.java:[90,29] package com.ibm.icu.math does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkTransactionPriceItemDetailSummaryVO.java:[629,12] cannot find symbol
symbol: class ErrorDetailVO
location: class com.tfmwithspark.SparkTransactionPriceItemDetailSummaryVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkTransactionPriceItemDetailSummaryVO.java:[636,32] cannot find symbol
symbol: class ErrorDetailVO
location: class com.tfmwithspark.SparkTransactionPriceItemDetailSummaryVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkTransactionPriceItemDetailSummaryVO.java:[777,28] package com.ibm.icu.math does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkTransactionPriceItemDetailSummaryVO.java:[784,47] package com.ibm.icu.math does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[24,36] package com.splwg.base.api.datatypes does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[25,57] package com.splwg.base.domain.common.featureConfiguration does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[26,57] package com.splwg.base.domain.common.featureConfiguration does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[27,71] package com.splwg.ccb.domain.banking.transactionFeed.transactionFeedAgg does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[28,71] package com.splwg.ccb.domain.banking.transactionFeed.transactionFeedAgg does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[29,71] package com.splwg.ccb.domain.banking.transactionFeed.transactionFeedAgg does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[30,71] package com.splwg.ccb.domain.banking.transactionFeed.transactionFeedAgg does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[31,71] package com.splwg.ccb.domain.banking.transactionFeed.transactionFeedAgg does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[32,71] package com.splwg.ccb.domain.banking.transactionFeed.transactionFeedAgg does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[33,71] package com.splwg.ccb.domain.banking.transactionFeed.transactionFeedAgg does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[34,74] package com.splwg.ccb.domain.banking.transactionFeed.transactionFeedAgg.vo does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[35,51] package com.splwg.ccb.domain.pricing.priceassign.vo does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[36,46] package com.splwg.ccb.domain.pricing.priceitem does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[37,46] package com.splwg.ccb.domain.pricing.priceitem does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[38,46] package com.splwg.ccb.domain.pricing.priceitem does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[39,46] package com.splwg.ccb.domain.pricing.priceitem does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[40,46] package com.splwg.ccb.domain.pricing.priceparm does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[41,46] package com.splwg.ccb.domain.pricing.priceparm does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[42,46] package com.splwg.ccb.domain.pricing.priceparm does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[130,25] cannot find symbol
symbol: class EffectiveDatedProductParameterDetail
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[132,25] cannot find symbol
symbol: class PriceParm
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[149,25] cannot find symbol
symbol: class TransactionRecordTypeVO
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[151,25] cannot find symbol
symbol: class DivisionCharacteristicDetail
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[154,25] cannot find symbol
symbol: class SQIFragmentDetails
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[157,30] cannot find symbol
symbol: class AlgoParmVO
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[159,25] cannot find symbol
symbol: class DivisionDetailVO
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[161,35] cannot find symbol
symbol: class SchedulePeriodData
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[297,31] cannot find symbol
symbol: class TransactionRecordTypeVO
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[313,31] cannot find symbol
symbol: class DivisionCharacteristicDetail
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[329,31] cannot find symbol
symbol: class SQIFragmentDetails
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[345,41] cannot find symbol
symbol: class SchedulePeriodData
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[350,19] cannot find symbol
symbol: class PriceParm
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[651,17] cannot find symbol
symbol: class EffectiveDatedProductParameterDetail
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[1270,102] package com.splwg.base.api.datatypes does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[1317,31] cannot find symbol
symbol: class DivisionDetailVO
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[1618,24] cannot find symbol
symbol: class PriceItemParm_DTO
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[1626,18] cannot find symbol
symbol: class PriceItemParm_DTO
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[1646,13] cannot find symbol
symbol: class EffectiveDatedProductParameterDetail
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkVMACache.java:[1645,13] cannot find symbol
symbol: class EffectiveDatedProductParameterDetail
location: class com.tfmwithspark.SparkVMACache
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/BillableChargeAndSQSparkVO.java:[7,46] package com.splwg.ccb.domain.pricing.priceitem does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestMaterializedView.java:[22,30] package org.hibernate.internal does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestMaterializedView.java:[25,34] package com.splwg.base.api.service does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestMaterializedView.java:[26,38] package com.splwg.base.support.context does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestMaterializedView.java:[27,38] package com.splwg.base.support.context does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestMaterializedView.java:[28,38] package com.splwg.base.support.context does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestMaterializedView.java:[29,38] package com.splwg.base.support.context does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestMaterializedView.java:[30,33] package com.splwg.ccb.domain.util does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestMaterializedView.java:[31,32] package com.splwg.shared.context does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestMaterializedView.java:[32,32] package com.splwg.shared.context does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestMaterializedView.java:[33,32] package com.splwg.shared.environ does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/TestMaterializedView.java:[68,36] cannot find symbol
symbol: class FrameworkSession
location: class com.tfmwithspark.TestMaterializedView
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkPriceAsgnVO.java:[7,36] package com.splwg.base.api.datatypes does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkPriceAsgnVO.java:[8,36] package com.splwg.ccb.domain.pricing does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkPriceAsgnVO.java:[9,54] package com.splwg.ccb.domain.pricing.priceassign.enums does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkPriceAsgnVO.java:[10,54] package com.splwg.ccb.domain.pricing.priceassign.enums does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkPriceAsgnVO.java:[11,46] package com.splwg.ccb.domain.pricing.priceitem does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkPriceAsgnVO.java:[12,46] package com.splwg.ccb.domain.pricing.priceparm does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkPriceAsgnVO.java:[13,47] package com.splwg.ccb.domain.pricing.service.vo does not exist
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkPriceAsgnVO.java:[64,13] cannot find symbol
symbol: class Date
location: class com.tfmwithspark.SparkPriceAsgnVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkPriceAsgnVO.java:[66,13] cannot find symbol
symbol: class Date
location: class com.tfmwithspark.SparkPriceAsgnVO
[ERROR] /C:/Users/asoza/SparkWorkspace/TFMWithSpark/src/main/java/com/tfmwithspark/SparkPriceAsgnVO.java:[68,13] cannot find symbol
symbol: class Date
location: class com.tfmwithspark.SparkPriceAsgnVO

[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

我已经检查了要求检查 pom.xml 中是否正确提及 Java 版本的解决方案。

我已经在我的 pom.xml 中检查过它是正确的。

我无法理解为什么会发生此错误。

在我的 POM.xml 下方

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.tfmwithspark</groupId>
<artifactId>TFMWithSpark</artifactId>
<version>1.0</version>
<dependencies>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.11</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-sql_2.11</artifactId>
<version>2.3.0</version>
</dependency>

</dependencies>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
</project>

我正在使用Maven - 3.5.3java版本“1.8.0_211”

最佳答案

您应该在 POM 中声明所有依赖项。

我猜以 com.splwg 开头的包既不属于您的项目,也不属于 Spark。

这些依赖项必须以某种方式在您的 POM 中声明。

如果这些 jar 不在公共(public) Maven 存储库中,您可以在本地安装它们,或者在私有(private) Maven 存储库中部署或者(如果两者都不可能)引用它们与依赖的 systemPath 属性。

你应该检查maven guide to installing 3rd party JARs .

唯一能够快速包含在这个答案中的肮脏黑客是系统路径依赖。

<dependency>
<groupId>local.hack</groupId>
<artifactId>com.splwg.base</artifactId>
<version>1.0</version>
<scope>system</scope>
<!-- here you set the local machine path of your jar -->
<systemPath>${basedir}/lib/splwg_base_jar.jar</systemPath>
</dependency>

我不推荐这种方法,但我猜测您已经在项目中使用了本地依赖项,因此将它们导入到 Maven 中不会引入任何问题。

与其他开发人员共享具有本地依赖项的 POM 并不是一个好主意,您应该选择私有(private) Maven 存储库

私有(private) Maven 存储库只是一个专用的 Web 应用程序,它允许您上传 jar 作为 Maven Artifact ,然后您可以将其作为依赖项包含在您的 pom 中。

它还有一个好处(如果你愿意)可以代理 Maven 存储库,这样你就可以获得你使用的 Maven Artifact 的本地网络缓存。

有几个本地 Artifact 存储库软件,例如 NEXUS 或 Artifactory,选择一个并遵循其指南。

关于java - 即使 ANT 构建没有给出错误,Maven 也会给出 MojoFailureException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56035213/

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