sbt安装

作者: mrknowledge | 来源:发表于2020-09-03 15:28 被阅读0次

    下载:

    wget https://github.com/sbt/sbt/releases/download/v1.0.3/sbt-1.0.3.tgz

    tar xvf sbt-1.0.3.tgz

    cd sbt/

    新建程序 /usr/local/bin/sbt:

    #!/usr/bin/bash

    SBT_OPTS="-Xms512M -Xmx1024M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M"

    java $SBT_OPTS -jar /home/vagrant/apps/sbt/bin/sbt-launch.jar "$@"  #修改路径

    设置国内仓库,新建 ~/.sbt/repository:

    [repositories]

      local

      oschina:http://maven.oschina.net/content/groups/public/

      oschina-ivy:http://maven.oschina.net/content/groups/public/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]

      repo2:http://repo2.maven.org/maven2/

      ivy-typesafe:http://dl.bintray.com/typesafe/ivy-releases, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]

      ivy-sbt-plugin:http://dl.bintray.com/sbt/sbt-plugin-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]

      typesafe-releases: http://repo.typesafe.com/typesafe/releases

      typesafe-ivy-releasez: http://repo.typesafe.com/typesafe/ivy-releases, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]

    参考:

    https://gist.github.com/ericzhong/0112853878e982b7581ca67013af607a

    相关文章

      网友评论

          本文标题:sbt安装

          本文链接:https://www.haomeiwen.com/subject/odfosktx.html