title: sbt dependency resolver with basic auth
body: <p>I have nginx for my maven repository with basic authorization.</p>
  
  <p>My build.sbt has:</p>
  
  <pre><code>credentials += Credentials("maven repository", "rep.com", "sbt", "password")
  
  resolvers ++= Seq(
    "maven repository" at "http://rep.com:8080/"
  )
  </code></pre>
  
  <p>but, sbt can't found module because sbt doesn't use basic authorization.</p>
  
  <p>My nginx logs looks like:</p>
  
  <pre><code>012/07/22 20:02:21 [error] 3338#0: *14 no user/password was provided for basic authentication, client: 8.32.39.29, server: rep.com, request: "HEAD /some/cool_2.9.1/0.1-SNAPSHOT/cool_2.9.1-0.1-SNAPSHOT.pom HTTP/1.1", host: "rep.com:8080"
  </code></pre>
  
  <p>I don't wanna to publish artifacts through nginx. Basic auth need only for restricted access to artifacts.</p>
  
  <p>How I can restrict access and working with repository in sbt?</p>