Install under Windows configuration SBT

Source: Internet
Author: User
Tags sonatype

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.