centos7 install scala sbt china mirror repo set

wget https://downloads.lightbend.com/scala/2.11.12/scala-2.11.12.rpm
wget https://piccolo.link/sbt-1.2.1.tgz
or

curl https://bintray.com/sbt/rpm/rpm > bintray-sbt-rpm.repo
sudo mv bintray-sbt-rpm.repo /etc/yum.repos.d/
sudo yum install sbt

rpm -ivh scala-2.11.12.rpm

tar -zxvf sbt-1.2.1.tgz -C /usr/local
vi repositories

[repositories]
local
aliyun-nexus: http://maven.aliyun.com/nexus/content/groups/public/  
ibiblio-maven: http://maven.ibiblio.org/maven2/
typesafe-ivy: https://dl.bintray.com/typesafe/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
uk-repository: http://uk.maven.org/maven2/
jboss-repository: http://repository.jboss.org/nexus/content/groups/public/

osc: http://maven.oschina.net/content/groups/public/
typesafe: http://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly
sonatype-oss-releases
maven-central
sonatype-oss-snapshots

mkdir ~/.sbt
cp repositories ~/.sbt/

ln -s /usr/local/sbt/bin/sbt /usr/local/bin/sbt

sbt -version

你可能感兴趣的:(centos7 install scala sbt china mirror repo set)