sbt 安裝


此次安裝實在windows 下進行的

1.官網下載sbt

2.安裝並配置環境變量

path  中添加:

3.更改sbt配置文件

1)修改C:\notos\software\sbt\conf\sbtconfig.txt

# Set the java args to high

-Xmx512M

-XX:MaxPermSize=256m

-XX:ReservedCodeCacheSize=128m



# Set the extra SBT options

-Dsbt.log.format=true
-Dsbt.boot.directory=C:\Users\MI\.sbt\boot
-Dsbt.global.base=C:\Users\MI\.sbt
-Dsbt.ivy.home=C:\Users\MI\.ivy2
-Dsbt.repository.config=C:\notos\software\sbt\conf\repo.properties
-Dsbt.repository.secure=false

# 設置代理
# -Dhttp.proxyHost=10.18.11.11
# -Dhttp.proxyPort=8080
# -Dhttp.proxyUser=xx
# -Dhttp.proxyPassword=xx

# -Dhttps.proxyHost=10.18.1111
# -Dhttps.proxyPort=8080
# -Dhttps.proxyUser=xx
# -Dhttps.proxyPassword=xx

 

 2)修改repo.properties,添加國內鏡像

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

3.測試sbt 是否可用

打開cmd,鍵入sbt,若出現如下內容則安裝成功,第一次啟動sbt時間比較長

4.idea 中配置sbt

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM