将番石榴添加到Maven项目pom.xml仍然会导致ClassDefNotFoundError

时间:2019-06-15 16:19:53

标签: java maven pom.xml noclassdeffounderror

我有一个Maven项目,但出现以下错误:

AxiosRequestConfig

即使我将此添加到了silenceLoad

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/cache/CacheLoader
    at org.apache.spark.SparkConf.loadFromSystemProperties(SparkConf.scala:76)
    at org.apache.spark.SparkConf.<init>(SparkConf.scala:71)
    at org.apache.spark.SparkConf.<init>(SparkConf.scala:58)
    at org.apache.spark.test.SparkEnv$class.spark(SparkEnv.scala:26)
    at org.apache.spark.test.Main$.spark$lzycompute(Main.scala:22)
    at org.apache.spark.test.Main$.spark(Main.scala:22)
    at org.apache.spark.test.Main$.main(Main.scala:29)
    at org.apache.spark.test.Main.main(Main.scala)
Caused by: java.lang.ClassNotFoundException: com.google.common.cache.CacheLoader
    at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 8 more

我重新导入了我的资源并多次重建了该项目,但它似乎仍然无法正常工作。我想念什么?

0 个答案:

没有答案