sbt修改为阿里云镜像

时间:2020-07-19 00:21:56   收藏:0   阅读:81

在~/.sbt/下添加一个repositories文件,里面内容如下:

PS:.sbt/文件一般在C:\Users\RYJ\ 下面,也可以使用类似Everything的工具快速搜索到。

[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
sonatype-oss-releases
maven-central
sonatype-oss-snapshots

如果只是在单个项目中修改的话,在build.sbt里添加

resolvers += "aliyun" at "http://maven.aliyun.com/nexus/content/groups/public/"

 

原文:https://www.cnblogs.com/shuai7boy/p/13337979.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!