加入收藏 | 设为首页 | 会员中心 | 我要投稿 安卓应用网 (https://www.0791zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 程序设计 > 正文

当常春藤缓存损坏时,如何强制sbt重新下载依赖项

发布时间:2020-05-27 19:12:58 所属栏目:程序设计 来源:互联网
导读:当常春藤缓存损坏时,我从sbt得到以下错误 [error] unresolved dependency: commons-codec#commons-codec;1.10: configuration not found in commons-codec#commons-codec; 1.10: ‘master(compile)’. Missing configuration: ‘compile’

当常春藤缓存损坏时,我从sbt得到以下错误

[error] unresolved dependency: commons-codec#commons-codec;1.10: configuration not found in commons-codec#commons-codec;
1.10: ‘master(compile)’. Missing configuration: ‘compile’. It was required from com.typesafe.play#play_2.11;2.4.3 compile

如果我删除常春藤缓存中的文件夹commons-codec并运行sbt update,sbt将重新下载依赖项,一切都会好的.

有没有办法告诉sbt删除文件夹并自动重新下载依赖项?

这很简单,只是
rm -fr ~/.ivy2/cache # Or mv ~/.ivy2/cache ~/.ivy2/cache_bk
sbt update

最后,如果你在Intellij,文件 – >使高速缓存/重新启动无效.

我在20分钟前做了同样的事情.可能也不是坏事.我刚刚在mac上保存了一大块空间.

Atom:~ me$du -skh ./.iv*
349M    ./.ivy2
1.0G    ./.ivy2_bak

(编辑:安卓应用网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读