SBT 修改远程仓库地址方法

sbt 直接修改sbt-lauch.jar/sbt/sbt.boot.properties的方式

[scala]
  version: ${sbt.scala.version-auto}

[app]
  org: ${sbt.organization-org.scala-sbt}
  name: sbt
  version: ${sbt.version-read(sbt.version)[0.13.9]}
  class: ${sbt.main.class-sbt.xMain}
  components: xsbti,extra
  cross-versioned: ${sbt.cross.versioned-false}
  resources: ${sbt.extraClasspath-}

[repositories]
  local
    Local-Maven-Repository: file:///Users/myname/Java/java-repositories, [organization]/[module]/[revision]/[type]s/[artifact](-[classifier]).[ext]
    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] 
  maven-central
    uk-repository: http://uk.maven.org/maven2/
    jboss-repository: http://repository.jboss.org/nexus/content/groups/public/

[boot]
  directory: ${sbt.boot.directory-${sbt.global.base-${user.home}/.sbt}/boot/}

[ivy]
  ivy-home:/Users/myname/Java/java-repositories 
  checksums: ${sbt.checksums-sha1,md5} 
  override-build-repos: ${sbt.override.build.repos-false} 
  repository-config: ${sbt.repository.config-${sbt.global.base-${user.home}/.sbt}/repositories} 
  1. repositories 远程仓库地址
  2.  ` typesafe-ivy` 兼容ivy地址
  3. ivy-home:本地仓库地址,jar 存放地址
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s