sbt 0.11.1 doesn't retrieve scalatra 2.1.0-SNAPSHOT dependency

前端 未结 3 2116
栀梦
栀梦 2021-02-15 15:15

I\'ve just upgraded to sbt 0.11.1 that doesn\'t seem to be fetching a certain dependency. Things worked fine before the upgrade.

I have this dependency:

相关标签:
3条回答
  • 2021-02-15 15:48

    After blowing away not just ~/.ivy2 but ~/.m2 and ~/.sbt as well, everything worked again.

    0 讨论(0)
  • 2021-02-15 15:48

    I have had occasions where Ivy has got confused. I can't tell you why, unfortunately, but I have found that things work fine after deleting the entire ~/.ivy2 directory hierarchy. Clearly you'll have to download all your dependencies again, though :-(

    0 讨论(0)
  • 2021-02-15 16:05

    Sometimes ivy cache entries get corrupted - simply remove ~/.ivy2/cache/org.scalatra/scalatra_2.9.1/jars/, and let SBT re-fetch the dependency from the remote repo. If it doesn't work, try to remove an entire cache directory (~/.ivy2/cache).

    0 讨论(0)
提交回复
热议问题