I want to use SBT with IntelliJ IDEA 14.1. However, I want to download everything from our company-internal Nexus server. I made two repository groups there which contain some proxy repositories.
My .sbt/repositories
file looks like this:
[repositories]
local
my-ivy-proxy-releases: http://our-nexus/nexus/content/groups/sbt_ivy_group/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
my-maven-proxy-releases: http://our-nexus/nexus/content/groups/public/
The URLs are fine, I can open them in my browser.
Now, when I run sbt
either from command line or from IntelliJ IDEA, it tries to download from repo.scala-sbt.org, repo.typesafe.com etc. even though I do not want it.
How do I force SBT to only download from the repositories in the repositories file?
EDIT: It does download from our company nexus, but only after trying the "official" releases, which result in loads of "connection refused" because we are behind an HTTP proxy which slows dependency resolving down quite a lot.
EDIT 2: I tried to add -Dsbt.override.build.repos=true
to the VM parameters of IDEA's SBT settings, but this does not seem to change anything.