1: Installation package Download interface
Http://www.scala-sbt.org/download.html
Install after downloading.
Installation path: D:\Java\sbt\conf
2: Configure
(1) Sbtconfig.txt
# Set The Java argsto 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-repoNexus 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], bootonlyTypesafe2:http://repo.typesafe.com/typesafe/releases/Sbt-plugin:http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/Sonatype:http://Oss.sonatype.org/content/repositories/snapshotsUk_maven:http://uk.maven.org/maven2/Ibibli:http://mirrors.ibiblio.org/maven2/Repo2:http://repo2.maven.org/maven2/
3: Open cmd run SBT, the system will download a bunch of dependent packages
C:\users\yan>Sbtjava HotSpot (TM) --bit Server VM warning:ignoring option maxpermsize=256m; Support is removedinch 8.0Getting Org.scala-SBT SBT0.13. the(This could take some Time)... You probably access the destination server through a proxy server, which is not well configured. You probably access the destination server through a proxy server, which is not well configured. You probably access the destination server through a proxy server, which is not well configured. You probably access the destination server through a proxy server so 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. the!main.jar (16346MS)
4: Test
> sbtversion
[INFO] 0.13.15
>
Install under Windows configuration SBT