Sbt配置本地私服
step1.需要搭建maven私服(linux))
- 下载
https://www.sonatype.com/nexus-repository-oss
网站下方 nexus-repository-o免费开源版
- 安装(解压即可)
- 配置本地maven私服 settings.xml
<servers>
<server>
<id>nexus</id>
<username>admin</username>
<password>*******</password>
</server>
</servers>
<!-- 资源下载到本地的路径,可不配置 -->
<localRepository>D:\SowftwareSetup\IT\devtools\tts9\apache-mavenLoca</localRepository>
<mirrors>
<mirror>
<id>nexus</id>
<name>nexus repository</name>
<url>http://10.1.24.****:18081/nexus/content/groups/****_group/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
step2.sbt配置maven私服
在sbt_home/.sbt/repo.properties 配置如下:
[repositories]
local
#本地maven库或者sbt 本地库位置都可以,二选一
#maven-local: file:D:/SowftwareSetup/IT/plugins/sbt/.ivy2
maven-local: file:D:/SowftwareSetup/IT/devtools/tts9/apache-mavenLoca/
#maven 私服
isuwang-public: http://10.1.24.213:18081/nexus/content/groups/bicon_group/
#public: http://maven.aliyun.com/nexus/content/groups/public/
#ibiblio-maven: http://maven.ibiblio.org/maven2/
#uk-repository: http://uk.maven.org/maven2/
#jboss-repository: http://repository.jboss.org/nexus/content/groups/public/
#typesafe:http://dl.bintray.com/typesafe/ivy-releases/ , [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly
ivy-sbt-plugin:http://dl.bintray.com/sbt/sbt-plugin-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
sonatype-oss-releases
maven-central
sonatype-oss-snapshots