Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SBT access to local Maven repositories

Tags:

maven

sbt

I'm having difficulty configuring SBT to use my local maven repositories. SBT is configured to use a proxy for external repositories which handles NTLM authentication for us, and this works OK. I've attempted this:

resolvers ++= Seq("Local Maven Repository" at "file:///C:/java/apache-maven-3.0.3/repository",
                  "SIS Nexus Repository" at "http://linuxbuildserver-dev.sis.tv:8081/nexus/content/repositories/snapshots/",
                  "SIS 3rd Party Repository" at "http://linuxbuildserver-dev.sis.tv:8081/nexus/content/repositories/thirdparty/"
              )       

In order to access our local Maven repo and my own private cache; and the SBT resolvers task lists them OK. However, on a compile, the resources I need are not accessed and the trace only mentions that public repos have been contacted.

Any ideas?

like image 457
John Watson Avatar asked Oct 26 '11 11:10

John Watson


1 Answers

Found the answer eventually (somewhat unintuitively) - if I replace resolvers with externalResolvers then I get the compile to work.

like image 57
John Watson Avatar answered Sep 28 '22 05:09

John Watson