sbt - sbt 2 wrong checksum
Summary
- 加载jar包的时候,出现wrong checksum问题。
[info] Loading global plugins from C:\Users\Chris.sbt\1.0\plugins
[error] lmcoursier.internal.shaded.coursier.error.FetchError$DownloadingArtifacts: Error fetching artifacts:
[error] https://repo1.maven.org/maven2/org/scala-sbt/librarymanagement-ivy_2.12/1.3.1/librarymanagement-ivy_2.12-1.3.1.jar: wrong checksum: C:\Users\Chris\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-sbt\librarymanagement-ivy_2.12\1.3.1\librarymanagement-ivy_2.12-1.3.1.jar (expected SHA-1 46658dede6da3b07f9ac819400269e9b8dfeb996 in C:\Users\Chris\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-sbt\librarymanagement-ivy_2.12\1.3.1.librarymanagement-ivy_2.12-1.3.1.jar__sha1, got 1dbc36aa9350b6f09a7e53b906af23253cfec97d)
[error] https://repo1.maven.org/maven2/io/get-coursier/lm-coursier-shaded_2.12/2.0.0-RC5-3/lm-coursier-shaded_2.12-2.0.0-RC5-3.jar: wrong checksum: C:\Users\Chris\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\io\get-coursier\lm-coursier-shaded_2.12\2.0.0-RC5-3\lm-coursier-shaded_2.12-2.0.0-RC5-3.jar (expected SHA-1 863725e4e58516ea30d247d4c2f7c1ffc59f1527 in C:\Users\Chris\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\io\get-coursier\lm-coursier-shaded_2.12\2.0.0-RC5-3.lm-coursier-shaded_2.12-2.0.0-RC5-3.jar__sha1, got 3e223ce18b10a50a034f53b22fb66f54101b2a2f)
解决
- 删除对应目录中有问题的文件,然后重新执行即可。
本文来自博客园,作者:duchaoqun,转载请注明原文链接:https://www.cnblogs.com/duchaoqun/p/12703935.html