Fork me on GitHub
#leiningen
<
2017-12-04
>
wdullaer15:12:10

I have a few jar files, which for licensing reasons I cannot upload anywhere

wdullaer15:12:29

they currently live in a subfolder and I've specified them as resources, which makes the repl happy

wdullaer15:12:47

however leinigen does not seem to pack them into an uberjar when running lein uberjar

wdullaer15:12:55

does anyone have any pointers on how to get this working?

noisesmith18:12:16

@wdullaer my guess is that they are in the jar if they are in your resources dir, but they are not at the root of the jar where normal usage will find them

noisesmith18:12:17

@wdullaer two options are to use mvn to install the jar to your local cache by hand, or use the lein localrepo tool that does the same thing https://github.com/kumarshantanu/lein-localrepo#install-artifacts-to-local-maven-repository

noisesmith18:12:11

another option is to make a private maven repo and deploy that jar to the private repo (eg. the lein aws wagon plugin which my team uses for shared private jars)

cap10morgan20:12:49

all of a sudden the past few days leiningen is trying to connect to a maven repo on localhost to download missing deps, failing, and giving up. but neither ~/.lein/profiles.clj nor the current project.clj have any reference to such a repo. tested with both lein 2.8.1 and 2.7.1. where else should I look to fix this?

cap10morgan20:12:31

nevermind. rebooting fixed it. as it does every problem in life. ¯\(ツ)