修改idea的sbt的源

1. 创建源配置

新建文件 ~/.sbt/repositories 增加如下内容:

[repositories]
local
aliyun: http://maven.aliyun.com/nexus/content/groups/public
typesafe-ivy-releases: http://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly
sonatype-oss-releases
maven-central
sonatype-oss-snapshots

2. 修改idea启动配置

Preferences=>...=>SBT=>JVM Options=>VM parameters 增加如下内容

-Dsbt.override.build.repos=true
-Dsbt.repository.config=~/.sbt/repositories

参考: http://www.scala-sbt.org/1.x/docs/Proxy-Repositories.html

你可能感兴趣的:(修改idea的sbt的源)