码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2019-01-04 23:10:21      阅读:236      评论:0      收藏:0      [点我收藏+]

标签:ase   art   形式   pre   参考   tps   pes   release   maven2   

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

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

标签:ase   art   形式   pre   参考   tps   pes   release   maven2   

原文地址:https://www.cnblogs.com/shengulong/p/10222905.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!