title: How to make my Informix JDBC driver known to leiningen
body: <p>This question is a follow-on to this <a href="https://stackoverflow.com/questions/22206067/how-to-add-jdbc-supported-database-informix-into-korma">question</a>, but I felt was different enough to warrant a separate post.</p>
  
  <p>How do I configure Clojure, to recognize an Informix jdbc driver? I am using leiningen.</p>
  
  <p>I have read this <a href="https://stackoverflow.com/questions/17035529/use-leiningen-with-local-m2-repository">post</a>, but am still confused. My Informix JDBC driver is in maven. I installed it this way:</p>
  
  <pre><code>mvn install:install-file \
  -DgroupId=com.informix \
  -DartifactId=ufxjdbc \
  -Dversion=3.50.JC9 \
  -Dfile=/opt/IBM/Informix_JDBC_Driver/lib/ifxjdbc.jar \
  -Dpackaging=jar \
  -DgeneratePom=true
  </code></pre>
  
  <p>I have spoken to IBM (Informix) support, and the fact I can run their java demo programs means their JDBC driver is working correctly. </p>
  
  <p>Because of this error: </p>
  
  <pre><code>Exception in thread "main" java.sql.SQLException: 
  No suitable driver found for 
  jdbc:informix-sqli://steamboy:1498/stores7/ministores:INFORMIXSERVER=steamboy
  </code></pre>
  
  <p>Informix support thinks I need to configure Clojure/leiningen, so it can find the Informix JDBC driver. </p>
  
  <p>This driver is not in the usual leiningen dependent directories, and Informix support said something about getting the driver into Clojure's classpath. I thought that meant installing in Maven.</p>
  
  <p>project.clj</p>
  
  <pre><code>(defproject db-test "0.1.0-SNAPSHOT"
    :description "Clojure database test"
    :url "http://example.com/FIXME"
    :license {:name "Eclipse Public License"
              :url "http://www.eclipse.org/legal/epl-v10.html"}
    :dependencies [[org.clojure/clojure "1.5.1"]
                   [org.clojure/tools.cli "0.1.0"]
                   [org.clojure/java.jdbc "0.3.3"]]
     :main db-test.core)
  </code></pre>
  
  <p>core.clj (reduced for brevity)</p>
  
  <pre><code>(ns db-test.core
  
    (require [clojure.string :as str])
    (require [clojure.java.jdbc :as j])
    (:use [clojure.tools.cli])
    (:import java.util.Date)
    (:gen-class)
  )
  
  
  (defn -main 
    [&amp; args]
    (def informix-db {:classname "com.informix.jdbc.IfxDriver"
                      :subprotocol "informix-sqli"
                      :subname (format "//%s:%s/%s:INFORMIXSERVER=%s" 
                      (:host opts)
                      (:port opts)
                      (:database opts)
                      (:server opts))
                      :user (:user opts)
                      :password (:password opts)})
  
          (let [customer-list 
          (j/query informix-db
            ["select * from customer"])]
            (doseq [customer customer-list]
              (println customer))))))
  </code></pre>
  
  <p>I would appreciate any pointers or help. </p>