1. 程式人生 > >[Q&A] 解決 SBT 初始化或下載 jar 包速度慢的問題

[Q&A] 解決 SBT 初始化或下載 jar 包速度慢的問題

code pes HR epo b-s 加載 borde one smart

原文地址:https://www.cnblogs.com/memento/p/9153012.html

C:\Users\用戶名\.sbt 目錄下添加一個 "repositories" 文件,註意沒有後綴~

補充如下內容:

[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 中添加如下設置:

技術分享圖片

技術分享圖片

最後重啟 IDEA 即可在下方 View 窗口中看到 sbt 加載 jar 進程了;


By. Memento

[Q&A] 解決 SBT 初始化或下載 jar 包速度慢的問題