Scala SBT 国内镜像(华为云)

Scala构建工具SBT的开源依赖包镜像库:


1、SBT的仓库配置文件位置为:~/.sbt/repositories,您可以点击此处直接下载配置文件。您也可以在~/.sbt/目录下新建repositories文件,添加如下内容:

[repositories]
  local
  huaweicloud-ivy: https://repo.huaweicloud.com/repository/ivy/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
  huaweicloud-maven: https://repo.huaweicloud.com/repository/maven/


2、在<sbt安装目录>/conf/sbtconfig.txt文件中添加如下内容:

-Dsbt.override.build.repos=true


相关网址:

SBT官方地址:https://www.scala-sbt.org/

Scala官方地址:http://www.scala-lang.org/


  • © 2018-2024 hwyblog.njboshi.net 版权所有