Windows下安裝配置SBT

來源:互聯網
上載者:User

標籤:ons   config   lib   move   xmx   span   pos   not   ring   

1:安裝包下載介面

http://www.scala-sbt.org/download.html

下載後進行安裝。

安裝路徑:D:\Java\sbt\conf

2:進行配置

(1)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=D:/Java/sbt-p/boot/-Dsbt.global.base=D:/Java/sbt-p/.sbt-Dsbt.ivy.home=D:/Java/sbt-p/.ivy2-Dsbt.repository.config=D:/Java/sbt/conf/repo.properties

 

(2)repo.properties

[repositories]   local Nexus osc : https://code.lds.org/nexus/content/groups/main-repo Nexus osc thirdparty : https://code.lds.org/nexus/content/groups/plugin-repo/ typesafe: http://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly   typesafe2: http://repo.typesafe.com/typesafe/releases/ sbt-plugin: http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/ sonatype: http://oss.sonatype.org/content/repositories/snapshots   uk_maven: http://uk.maven.org/maven2/   ibibli: http://mirrors.ibiblio.org/maven2/   repo2: http://repo2.maven.org/maven2/ 

3:開啟CMD運行sbt,系統會下載一堆依賴包

C:\Users\yan>sbtJava HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0Getting org.scala-sbt sbt 0.13.15  (this may take some time)...You probably access the destination server through a proxy server that is not well configured.You probably access the destination server through a proxy server that is not well configured.You probably access the destination server through a proxy server that is not well configured.You probably access the destination server through a proxy server that is not well configured.downloading https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.10.6/scala-library-2.10.6.jar ...        [SUCCESSFUL ] org.scala-lang#scala-library;2.10.6!scala-library.jar (19115ms)downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/main/0.13.15/jars/main.jar ...        [SUCCESSFUL ] org.scala-sbt#main;0.13.15!main.jar (16346ms)

4:測試

> sbtVersion
[info] 0.13.15
>

 

Windows下安裝配置SBT

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.