How to attach sources to SBT managed dependencies in Scala IDE?

前端 未结 5 1075
执念已碎
执念已碎 2020-12-30 23:02

I\'m using Scala IDE 2.0.1 and SBT 0.11.2 to start with Akka 2.0.1. My build.sbt looks like this:

name := \"akka\"

version := \"0.1\"

scalaVersion := \"2.9         


        
5条回答
  •  不知归路
    2020-12-30 23:35

    I find that it's easier to give IvyDE and sbt different ivy cache directories. Yes, it takes more space, but sbt by default doesn't download sources. And once sbt has loaded the cache without sources, IvyDE won't add them. You can tell sbt to fetch them, but for me it's easier just to use more disk space and use two different caches.

    I do this by leaving sbt at the default, and setting IvyDE to use this file in Preferences > Ivy > Settings tab > Ivy settings file:

    
    
        
    
        
    
        
    
            
        
    
        
    
    
    

    That points to my local nexus server, so'll you'll need to modify it for your environment.

提交回复
热议问题