how do I get sbt to use a local maven proxy repository (Nexus)?

后端 未结 6 1206
無奈伤痛
無奈伤痛 2020-11-27 10:50

I\'ve got an sbt (Scala) project that currently pulls artifacts from the web. We\'d like to move towards a corporate-standardized Nexus repository that would cache artifacts

6条回答
  •  旧巷少年郎
    2020-11-27 11:16

    edit the config file in sbt_home/conf "sbtconfig.txt"

    add two line

    -Dsbt.override.build.repos=true
    -Dsbt.repository.config="C:/Program Files (x86)/sbt/conf/repo.properties"
    

    the repo.properties content is

    [repositories]
        local
        public: http://222.vvfox.com/public  <-fix this ,write your local nexus group url
    

提交回复
热议问题