[Q&A] 解决 SBT 初始化或下载 jar 包速度慢的问题

原文地址:http://www.javashuo.com/article/p-gxlqsrlh-gw.htmlhtml

C:\Users\用户名\.sbt 目录下添加一个 "repositories" 文件,注意没有后缀~maven

补充以下内容:ui

[repositories]
  local
  osc: 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

并在 IDEA 中添加以下设置:scala

1fbac955-1a37-4aad-ab32-ef0e81502214

ae8e8774-2050-4b86-83fb-712f916f77d1

最后重启 IDEA 便可在下方 View 窗口中看到 sbt 加载 jar 进程了;code

 

By. Mementohtm

相关文章
相关标签/搜索