您的位置:首页 > 其它

添加Maven(mvn)、sbt的国内仓库

2017-01-25 16:42 447 查看

Maven 配置

修改".m2"文件夹下的settings.xml文件,添加如下镜像配置:
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>

sbt

配置阿里云的maven镜像库,配置~.sbt\repositories文件

[repositories]
local
aliyun: http://maven.aliyun.com/nexus/content/groups/public/
typesafe-ivy-releases: https://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly

sbt 在ubuntu上的安装

echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
sudo apt-get update

sudo apt-get install sbt
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Maven Scala Scala sbt