编译打包工具sbt的镜像设置

sbt可以和maven共用一个镜像,公司内部有的自然最后不过

创建文件:~/.sbt/repositories

[repositories]
local
aliyun: http://maven.aliyun.com/nexus/content/groups/public/
typesafe: http://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly
central: http://repo1.maven.org/maven2/

以上配置文件解释顺序是:本地→阿里云镜像→typesafe->Maven主镜像。如果需要添加公司的 maven 镜像,可以按照 key: value 的形式添加,key 的命名没有要求(暂时没注意到,但是最好也不要用什么特殊符号吧 )

参考:

1、https://www.cnblogs.com/feiyumo/p/9237517.html

猜你喜欢

转载自www.cnblogs.com/shengulong/p/10222905.html