Fork me on GitHub
#leiningen
<
2016-02-26
>
majenful19:02:16

I’m going to take a flight, I would like to know if it is possible to download some dependencies in order to be sure to use them with a new project ?

donaldball19:02:58

lein deps should do you

majenful19:02:39

so it install to ~/.m2 directory, and all deps/projects in this directory are usable in a new project ?

tolitius19:02:59

@majenful: yes, once you have all your deps in ~/.m2/repo you can use lein in offline mode: lein -o ... it'll pick all the deps from your disk

majenful19:02:03

ok, and can I install some deps with lein installjust in case of ?

tolitius19:02:00

right, lein instal will package the app into a jar and will "install" it under ~/.m2/repo

tolitius19:02:49

but just to bring all the deps your app needs to work offline, @donaldball's suggestion will work (i.e. lein deps)