Fork me on GitHub
#leiningen
<
2016-06-16
>
roberto02:06:40

I have a small cli app that needs the sqlserver jar, but not sure how to package it inside the uberjar

danielcompton02:06:09

@roberto: is sqlserver a dependency?

roberto02:06:19

sqljdbc, yes

roberto02:06:25

it is the ms sql server jdbc driver

roberto02:06:37

it isn’t in maven, so I have to manually add it to my classpath

roberto02:06:09

works fine when I’m in the repl, but now when I want to deploy, the sqljdbc jar isn’t packaged

roberto03:06:26

nevermind, figured it out

roberto03:06:36

not sure what I did, because I tried lots of things

roberto03:06:44

but it is working now

roberto03:06:01

yeah but it is missing something

roberto03:06:19

like, adding a :repositories to project.clj

cjmurphy03:06:25

That's in there as an answer too. But usually you want a jar file to be available globally on your machine, in which case just putting the file into the .m2 repo of your machine works.

roberto03:06:08

the repositories option is there, but not as the right answer. btw, I think what eventually worked for me was that option. Installing in .m2 didn’t work.

roberto03:06:19

but I think it is more something funky about microsoft’s jdbc driver

roberto03:06:45

I hate working with sql server and oracle

cjmurphy03:06:57

Hmm yes, maybe there's more to the jdbc driver than just the jar file.

roberto03:06:15

thank you for the assistance

roberto03:06:19

I’ll call it a night