gpt4 book ai didi

scala - 什么 lmcoursier.internal.shaded.coursier.error.FetchError$DownloadingArtifacts : Error fetching artifacts: means?

转载 作者:行者123 更新时间:2023-12-04 15:32:59 26 4
gpt4 key购买 nike

我从 github 得到了这个项目,文件中的导入行 build.sbt被红了。

我有 scala 2.11.11 , sbt 1.3.4在本地,

然后我在idea中通过sbt模式导入项目,并获取这个错误

[info] Loading global plugins from C:\Users\TF\.sbt\1.0\plugins
[error] lmcoursier.internal.shaded.coursier.error.FetchError$DownloadingArtifacts: Error fetching artifacts:
[error] https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.12.10/scala-compiler-2.12.10.jar: wrong checksum: C:\Users\TF\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-lang\scala-compiler\2.12.10\scala-compiler-2.12.10.jar (expected SHA-1 33e91b29dff873755751bfc45e916a16100ec818 in C:\Users\TF\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-lang\scala-compiler\2.12.10\.scala-compiler-2.12.10.jar__sha1, got 6b90283a806731d3d30386b873714d604ce1211c)
[error] https://repo1.maven.org/maven2/net/java/dev/jna/jna-platform/4.5.0/jna-platform-4.5.0.jar: wrong checksum: C:\Users\TF\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\net\java\dev\jna\jna-platform\4.5.0\jna-platform-4.5.0.jar (expected SHA-1 ab163522ed76eb01c8c9a750dedacb134fc8c0 in C:\Users\TF\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\net\java\dev\jna\jna-platform\4.5.0\.jna-platform-4.5.0.jar__sha1, got 5e614ebb3050fcfce98902e857c7825900d063f8)
[error] https://repo1.maven.org/maven2/org/scala-lang/scala-reflect/2.12.10/scala-reflect-2.12.10.jar: wrong checksum: C:\Users\TF\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-lang\scala-reflect\2.12.10\scala-reflect-2.12.10.jar (expected SHA-1 14cb7beb516cd8e07716133668c427792122c926 in C:\Users\TF\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-lang\scala-reflect\2.12.10\.scala-reflect-2.12.10.jar__sha1, got 15f27a3e414690c99cba7f4eead287e42e7921c9)
[error] https://repo1.maven.org/maven2/com/trueaccord/scalapb/scalapb-runtime_2.12/0.6.0/scalapb-runtime_2.12-0.6.0.jar: wrong checksum: C:\Users\TF\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\trueaccord\scalapb\scalapb-runtime_2.12\0.6.0\scalapb-runtime_2.12-0.6.0.jar (expected SHA-1 236b392defb3823154ddd4e45b03f7832b019fb1 in C:\Users\TF\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\trueaccord\scalapb\scalapb-runtime_2.12\0.6.0\.scalapb-runtime_2.12-0.6.0.jar__sha1, got 81a72b03a7d67bec691584d7e4d64615a436cf59)
[error]
[error] at lmcoursier.internal.shaded.coursier.Artifacts$.$anonfun$fetchArtifacts$8(Artifacts.scala:268)
[error] at lmcoursier.internal.shaded.coursier.util.Task$.$anonfun$flatMap$2(Task.scala:14)
[error] at scala.concurrent.Future.$anonfun$flatMap$1(Future.scala:307)
[error] at scala.concurrent.impl.Promise.$anonfun$transformWith$1(Promise.scala:41)
[error] at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
[error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error] at java.lang.Thread.run(Thread.java:748)
[error] Caused by: lmcoursier.internal.shaded.coursier.cache.ArtifactError$WrongChecksum: wrong checksum: C:\Users\TF\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-lang\scala-compiler\2.12.10\scala-compiler-2.12.10.jar (expected SHA-1 33e91b29dff873755751bfc45e916a16100ec818 in C:\Users\TF\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-lang\scala-compiler\2.12.10\.scala-compiler-2.12.10.jar__sha1, got 6b90283a806731d3d30386b873714d604ce1211c)
[error] at lmcoursier.internal.shaded.coursier.cache.FileCache.$anonfun$validateChecksum$4(FileCache.scala:702)
[error] at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:659)
[error] at scala.util.Success.$anonfun$map$1(Try.scala:255)
[error] at scala.util.Success.map(Try.scala:213)
[error] at scala.concurrent.Future.$anonfun$map$1(Future.scala:292)
[error] at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33)
[error] at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33)
[error] at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
[error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error] at java.lang.Thread.run(Thread.java:748)
[error] (update) lmcoursier.internal.shaded.coursier.error.FetchError$DownloadingArtifacts: Error fetching artifacts:
[error] https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.12.10/scala-compiler-2.12.10.jar: wrong checksum: C:\Users\TF\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-lang\scala-compiler\2.12.10\scala-compiler-2.12.10.jar (expected SHA-1 33e91b29dff873755751bfc45e916a16100ec818 in C:\Users\TF\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-lang\scala-compiler\2.12.10\.scala-compiler-2.12.10.jar__sha1, got 6b90283a806731d3d30386b873714d604ce1211c)
[error] https://repo1.maven.org/maven2/net/java/dev/jna/jna-platform/4.5.0/jna-platform-4.5.0.jar: wrong checksum: C:\Users\TF\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\net\java\dev\jna\jna-platform\4.5.0\jna-platform-4.5.0.jar (expected SHA-1 ab163522ed76eb01c8c9a750dedacb134fc8c0 in C:\Users\TF\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\net\java\dev\jna\jna-platform\4.5.0\.jna-platform-4.5.0.jar__sha1, got 5e614ebb3050fcfce98902e857c7825900d063f8)
[error] https://repo1.maven.org/maven2/org/scala-lang/scala-reflect/2.12.10/scala-reflect-2.12.10.jar: wrong checksum: C:\Users\TF\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-lang\scala-reflect\2.12.10\scala-reflect-2.12.10.jar (expected SHA-1 14cb7beb516cd8e07716133668c427792122c926 in C:\Users\TF\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-lang\scala-reflect\2.12.10\.scala-reflect-2.12.10.jar__sha1, got 15f27a3e414690c99cba7f4eead287e42e7921c9)
[error] https://repo1.maven.org/maven2/com/trueaccord/scalapb/scalapb-runtime_2.12/0.6.0/scalapb-runtime_2.12-0.6.0.jar: wrong checksum: C:\Users\TF\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\trueaccord\scalapb\scalapb-runtime_2.12\0.6.0\scalapb-runtime_2.12-0.6.0.jar (expected SHA-1 236b392defb3823154ddd4e45b03f7832b019fb1 in C:\Users\TF\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\trueaccord\scalapb\scalapb-runtime_2.12\0.6.0\.scalapb-runtime_2.12-0.6.0.jar__sha1, got 81a72b03a7d67bec691584d7e4d64615a436cf59)

那是什么意思?我该怎么办?

最佳答案

通过 sbt 导入 Spark SQL 包时,我也遇到了同样的问题。在 spark-sql 中有多个文件夹,即 spark-sql 2.12 和 spark-sql 2.11。当我删除它们并刷新 build.sbt 时,问题得到解决。

在此路径中 C:\Users\TF\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-lang\scala-compiler\同一个包的不同版本可能有多个文件夹。全部删除并刷新 build.sbt .问题应该得到解决。

关于scala - 什么 lmcoursier.internal.shaded.coursier.error.FetchError$DownloadingArtifacts : Error fetching artifacts: means?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60811395/

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