How to fully clean, re-resolve and rebuild a Scala sbt-managed project in IDEA?

前端 未结 10 699
一向
一向 2021-02-02 06:18

TL;DR: How can I fully reconcile all dependencies in IntelliJ when SBT file changes

I have a SBT project setup in IntelliJ. For the most part if works l

10条回答
  •  爱一瞬间的悲伤
    2021-02-02 06:47

    I was using different versions of sbt and scala across different proejcts and IntelJi got confused somehow. I am only able to resolve the issue by removing the sbt and ivy2 cache folders:

    rm -rf ~/.ivy2
    rm -rf ~/.sbt
    

提交回复
热议问题