• Windows下安装配置SBT


    1:安装包下载界面

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

    下载后进行安装。

    安装路径:D:Javasbtconf

    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:Usersyan>sbt
    Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
    Getting 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
    >

  • 相关阅读:
    运行带参数的python脚本
    调用其他python脚本文件里面的类和方法
    快速学会在JSP中使用EL表达式
    理解maven项目的pom.xml文件中,<scope>标签的作用——作用域以及依赖传递
    理解JavaWeb项目中的路径问题——相对路径与绝对路径
    hdu4417(Super Mario)—— 二分+划分树
    hdu4325-Flowers-树状数组+离散化
    poj3321-Apple Tree(DFS序+树状数组)
    数据的离散化
    POJ2676 – Sudoku(数独)—DFS
  • 原文地址:https://www.cnblogs.com/yshyee/p/7233455.html
Copyright © 2020-2023  润新知