title: How to add directory to Clojure's classpath?
body: <p>I have installed the libraries with Maven to the ~/.m2/repository/ directory. I would like to add that path to the default Clojure classpath. I could not find the documentation how to do that.</p>
  
  <p>Any hints?</p>
  
  <p>Cheers!</p>
  
  <pre><code>clj
  Clojure 1.4.0
  user=&gt; (require '[clojure.java.jmx :as jmx])
  FileNotFoundException Could not locate clojure/java/jmx__init.class or clojure/java/jmx.clj on classpath:   clojure.lang.RT.load (RT.java:432)
  </code></pre>
  
  <p>The class path by default is:</p>
  
  <pre><code>user=&gt; (println (seq (.getURLs (java.lang.ClassLoader/getSystemClassLoader))))
  (#&lt;URL file:/Users/myuser/cljmx/&gt; #&lt;URL file:/usr/local/Cellar/clojure/1.4.0/clojure-1.4.0.jar&gt; #&lt;URL file:/Users/myuser/cljmx/&gt;)
  nil
  </code></pre>