|
最近项目转型,开始使用sbt作为构建工具,
一段时间发现jar包下载速度实在感人,遂在网上搜索解决方案,亲测以下方案有效
无论是windows系统还是linux系统,
linux在 /root/.sbt 目录下
windows 在user/.sbt 目录下
新建文件名 repositories
写入下面内容
[repositories] local public: http://maven.aliyun.com/nexus/content/groups/public/ typesafe:http://dl.bintray.com/typesafe/ivy-releases/ , [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly ivy-sbt-plugin:http://dl.bintray.com/sbt/sbt-plugin-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext] sonatype-oss-releases
sonatype-oss-snapshots |