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)

解決

  • 刪除對應目錄中有問題的文件,然后重新執行即可。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM