Leinigen uses maven repos to satisfy project clj dependencies, but there is 
nothing stopping you from putting your jar directly on the classpath. The 
idiom for local jars is to put them in "libs/". In this case you do *not* 
mention 
this dependency in your project.clj, but the jar will be on the classpath 
at runtime

If you still want project.clj to mention the dep but do not want to host 
the jar somewhere, you can make a local maven repository in your project 
itself (checked-in), and tell leinigen to use it. This stackoverflow answer 
describes that process: http://stackoverflow.com/a/9917149/1002469

If you really want to host the jar on a remote, non-private repo, use the 
full 4-arg form of the lein deploy command. See "lein help deploy" However, 
make sure this HP even lets you redistribute its jar in this way!

On Friday, September 23, 2016 at 10:19:10 AM UTC-5, Eddie wrote:
>
> Thanks for the reply. 
>
> I was under the impression that the jdbc driver (or any jar you want to 
> use as a dependency) needs to be hosted on some kind of maven repository. 
> Am I wrong about that?
>
> Here is the official download link for the Vertica jdbc driver: 
> https://my.vertica.com/client_drivers/7.2.x/7.2.3-0/vertica-jdbc-7.2.3-0.jar
> As far as I can tell, it isn't in a maven repository. Is there still a way 
> to tell lein to look at this address to pull the jar?
>
> Thanks! 
>
>  
>
>
> On Friday, September 23, 2016 at 11:02:07 AM UTC-4, Walter van der Laan 
> wrote:
>>
>> There is no need to push jdbc drivers to clojars.
>>
>> I have never used Vertica but perhaps it helps if I show you how to add 
>> the two jdbc-drivers that I do use.
>>
>>
>> Example 1; postgres
>>
>> The details for the postgres-driver can be found here: 
>> http://mvnrepository.com/artifact/org.postgresql/postgresql
>>
>> The download-link for the jar is; 
>> http://mvnrepository.com/artifact/org.postgresql/postgresql/9.4.1211.jre7
>>
>> This translates to this dependency in my project.clj: 
>> [org.postgresql/postgresql "9.4.1211"]
>>
>>
>> Example 2; h2
>>
>> The details for the h2-driver can be found here: 
>> http://h2database.com/html/download.html
>>
>> The download-link for the jar is; 
>> http://repo2.maven.org/maven2/com/h2database/h2/1.4.192/h2-1.4.192.jar
>>
>> This translates to this dependency in my project.clj: [com.h2database/h2 
>> "1.3.176"]
>>
>>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to