[Newbie] leiningen and random jars

6 views
Skip to first unread message

stevel

unread,
Mar 16, 2010, 12:22:42 PM3/16/10
to Clojure
I'd really like to use leiningen to assemble my classpath for me, but
need to reference a jdbc jar.
What is the approved method of doing this?

David Nolen

unread,
Mar 16, 2010, 4:00:01 PM3/16/10
to clo...@googlegroups.com

You should put your jar into the lib directory of your project folder. You can customize this but it's wiser you follow the convention until you're comfortable/familiar with how lein works.

David

Phil Hagelberg

unread,
Mar 16, 2010, 4:34:57 PM3/16/10
to clo...@googlegroups.com

The best way to do it would be to push it to a public repository so
everyone on your team can have access to it in an automated fashion.
If the project is only going to be developed on one machine you could
put it in lib/ as David suggests (just be careful not to run clean) or
use mvn install:install-file if you have a pom file for it.

-Phil

johnprince

unread,
Mar 17, 2010, 3:26:02 AM3/17/10
to Clojure
You don't need a pom file - just append -DgeneratePom=true to mvn
install:install-file and maven will generate one for you.

John

On Mar 16, 9:34 pm, Phil Hagelberg <p...@hagelb.org> wrote:

Reply all
Reply to author
Forward
0 new messages