title: How do I import a local java library in clojure? (lein)
body: <p>I'm trying to use a java library (jar file) called DragonConsole that is not on maven central or clojars.</p>
  
  <p>I want to import this library in my clojure application, but so far I can't figure out how to do so.</p>
  
  <p>I tried setting up a local maven repo, but I don't think I did it right. </p>
  
  <p><code>lein deps</code> gives me this error:</p>
  
  <pre><code>(Retrieving dragonconsole/dragonconsole/3.0.0/dragonconsole-3.0.0.pom from local)
  (Could not transfer artifact dragonconsole:dragonconsole:pom:3.0.0 from/to local)
  (file:/home/michael/clj/enclojed/maven_repository/): no supported algorithms found)
  </code></pre>
  
  <p>project.clj:</p>
  
  <pre><code>:dependencies [[org.clojure/clojure "1.6.0"]
                 [clojure-lanterna "0.9.4"]
                 [dragonconsole "3.0.0"]]
  :repositories [["local" {:url ~(str (.toURI (java.io.File. "maven_repository")))}]]
  </code></pre>
  
  <p>project folder:</p>
  
  <pre><code>maven_repository/DragonConsolev3.jar
  maven_repository/dragonconsole/dragonconsole/maven-metadata-local.xml
  maven_repository/dragonconsole/dragonconsole/3.0.0/dragonconsole-3.0.0.pom
  doc/...
  src/...
  test/...
  resources/...
  project.clj
  </code></pre>
  
  <p>If there's any other files you need to see, <a href="https://github.com/audererm/enclojed" rel="noreferrer">check the git page</a>.</p>