We're using a in house sonatype repository for our own libraries which our play project depend upon. Lately the project have been taking around 10 minutes to start (using play run) because the resolving is slow.
Trying to see what's happening I'm running a ngrep port 80
. I see alot of slow responses from the typesafe repository which answer that our own libraries isn't in their repo.
Example:
T <my-internal-ip>:41907 -> 54.236.91.228:80 [AP]
HEAD /typesafe/snapshots/<our-pom-file-here> HT
TP/1.1..User-Agent: Apache Ivy/2.3.0-rc1..Host: repo.typesafe.com..Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2..Connection: keep-alive....
#########
T 54.236.91.228:80 -> <my-iternal-ip>:41907 [AP]
HTTP/1.1 404 Not Found..Content-Type: application/json;charset=ISO-8859-1..Date: Wed, 07 May 2014
14:10:32 GMT..Server: Artifactory/3.2.0..X-Artifactory-Id: typesafe2-use-1e-typesafereadonly..Connection: keep-alive....
So I would like sbt to search our own repository first which it dosen't seem to be doing at the moment. We've added our repositories in Build.scala like:
val main = play.Project(appName, appVersion, appDependencies)
[...]
.settings(
[...]
resolvers += "nexus" at "<URL>",
[...]
Any suggestions how to tell sbt to search our local repos before trying with typesafe?