How to have Eclipse recognize dependencies from SBT

chiappone picture chiappone · Jan 30, 2012 · Viewed 19.1k times · Source

I am trying to figure out how to make Eclipse recognize dependencies that are retrieved using SBT? SBT download the correct dependencies and puts them in my ~/.ivy directory but eclipse doesn't see them. Is there a way to do this?

thanks

Answer

Arty picture Arty · Dec 7, 2012

If you are using sbteclipse plugin it's achievable in a simple way. In sbt type:

reload
eclipse with-source=true

Then in eclipse, hit F5 on a project folder to refresh it. Or right-click and choose "Refresh". Just works.