title: How make sbt use my jar from my local repository?
body: <p>I am trying to install SBT in my Linux VM(CentOS) with a very strict security.</p>
  
  <p>It can't access</p>
  
  <ul>
  <li><a href="http://repo.typesafe.com/typesafe/ivy-releases/" rel="nofollow noreferrer">http://repo.typesafe.com/typesafe/ivy-releases/</a></li>
  <li><a href="http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/" rel="nofollow noreferrer">http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/</a></li>
  </ul>
  
  <p>I already extracted the SBT zip file and add the bin path to the environment variable.</p>
  
  <p>As expected I can't run SBT.</p>
  
  <pre><code>[admin@xxx]$ sbt
  Getting org.scala-sbt sbt 0.13.12 ...
  
  :: problems summary ::
  :::: WARNINGS
              module not found: org.scala-sbt#sbt;0.13.12
  
      ==== local: tried
  
        /home/admin/.ivy2/local/org.scala-sbt/sbt/0.13.12/ivys/ivy.xml
  
        -- artifact org.scala-sbt#sbt;0.13.12!sbt.jar:
  
        /home/admin/.ivy2/local/org.scala-sbt/sbt/0.13.12/jars/sbt.jar
  
      ==== Maven Central: tried
  
        https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.12/sbt-0.13.12.pom
  
        -- artifact org.scala-sbt#sbt;0.13.12!sbt.jar:
  
        https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.12/sbt-0.13.12.jar
  
      ==== typesafe-ivy-releases: tried
  
        https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.13.12/ivys/ivy.xml
  
      ==== sbt-ivy-snapshots: tried
  
        https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/sbt/0.13.12/ivys/ivy.xml
  
              ::::::::::::::::::::::::::::::::::::::::::::::
  
              ::          UNRESOLVED DEPENDENCIES         ::
  
              ::::::::::::::::::::::::::::::::::::::::::::::
  
              :: org.scala-sbt#sbt;0.13.12: not found
  
              ::::::::::::::::::::::::::::::::::::::::::::::
  
  
  :::: ERRORS
      Server access Error: Connection timed out url=https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.12/sbt-0.13.12.pom
  
      Server access Error: Connection timed out url=https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.12/sbt-0.13.12.jar
  
      Server access Error: Connection timed out url=https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.13.12/ivys/ivy.xml
  
      Server access Error: Connection timed out url=https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/sbt/0.13.12/ivys/ivy.xml
  
  
  :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
  unresolved dependency: org.scala-sbt#sbt;0.13.12: not found
  Error during sbt execution: Error retrieving required libraries
  (see /home/admin/.sbt/boot/update.log for complete log)
  Error: Could not retrieve sbt 0.13.12
  </code></pre>
  
  <p>I manage to make it use my repository by adding repositories file</p>
  
  <p><strong>repositories</strong></p>
  
  <pre><code>[repositories]
    local
    my-maven-proxy-releases: http://nexuspro.company.com/nexus/service/local/repositories/
  </code></pre>
  
  <p>Then I run SBT command with this parameters:</p>
  
  <pre><code>sbt -Dsbt.repository.config=/sbt/conf/repositories
  </code></pre>
  
  <p>Now my problem is that SBT seems use default directory structure which is different from my repository.</p>
  
  <pre><code>&lt;my repository&gt;/org/scala-sbt/sbt/0.13.12/sbt-0.13.12.jar
  </code></pre>
  
  <p>So my question now is how can I set SBT to use my jar? Maybe force it to use absolute path of my jar</p>
  
  <pre><code>&lt;my repository&gt;/sbt-0.13.12.jar
  </code></pre>