当我在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.3 和 java版本“ 1.8.0_211”
答案 0 :(得分:0)
您应该在POM中声明所有依赖项。
我猜以com.splwg
开头的软件包既不是项目的一部分,也不属于Spark。
必须以某种方式在您的POM中声明这些依赖项。
如果这些jar不在公共Maven存储库中,则可以在本地安装,或者在私有Maven存储库中 deploy ,或者(如果不可能)引用它们带有依赖性的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不是一个好主意,您应该选择私有Maven存储库。
一个私有Maven存储库只是一个专用的Web应用程序,它可以让您上传 jars作为Maven工件,然后可以将其作为依赖项包含在pom中。
(如果需要)代理maven存储库也有好处,因此您可以获得使用的maven工件的本地网络缓存。
有几种本地工件存储库软件,例如NEXUS或Artifactory,请选择其中一个并遵循其指南。