Sbt配置本地私服,加快构建项目.搭建完成后29s项目构建完成

Sbt配置本地私服

step1.需要搭建maven私服(linux))

  1. 下载

https://www.sonatype.com/nexus-repository-oss

网站下方 nexus-repository-o免费开源版

  1. 安装(解压即可)

 

  1. 配置本地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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值