Sbt加速

修改repository代理

  • 文件位置: ~/.sbt/repositorymaven

[repositories]
  local
  oschina:http://maven.oschina.net/content/groups/public/
  oschina-ivy:http://maven.oschina.net/content/groups/public/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
  repo2:http://repo2.maven.org/maven2/
  ivy-typesafe:http://dl.bintray.com/typesafe/ivy-releases, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
  ivy-sbt-plugin:http://dl.bintray.com/sbt/sbt-plugin-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
  typesafe-releases: http://repo.typesafe.com/typesafe/releases
  typesafe-ivy-releasez: http://repo.typesafe.com/typesafe/ivy-releases, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]

設置本地repositories

  1. 下載 Lightbend Activatoride

    http://www.scala-lang.org/download/
  2. 解壓ui

  3. 將根目錄的repository文件夾複製到~/.ivy2, 並改名爲localspa

圖片描述

使用

  1. 命令行:命令後追加.net

    -Dsbt.override.build.repos=true
  2. IntelliJ IDEA:Preferences -> Build -> Build Tools -> SBT -> JVM Options -> VM parameters命令行

圖片描述

相關文章
相關標籤/搜索