I realize that this question is pretty much the exact question found here. However, seeing as that question is 1.5 years old (or so), I would like to revisit it. How does one add local dependencies using leiningen? Surely this capability must exist by now?
相关问题
- Better Sequence Duplicate Remover
- Include pom.xml in Jar with gradle
- Installation of Leiningen 2.X in Mac OS X
- What order does maven find its dependencies?
- proguard causing EnumMap NPE on dynamically declar
相关文章
- IDEA2020 安装maven 插件后,springboot程序 SpringBootApplic
- pom文件中的插件定义
- pom.xml中的project为何报红
- Hibernate Tutorial - Where to put Mapping File?
- Handling ffmpeg library interface change when upgr
- Build errors of missing packages in Visual Studio
- Cannot use org.jvnet.jax-ws-commons.jaxws-maven-pl
- Factor Clojure code setting many different fields
I found that the easiest (albeit somewhat hacky) solution is to do the following:
For an existing project that you're using as a dependency:
lein deps
lein uberjar
in this dependency dir (where the relevant project.clj file lives)For development of your own project:
lein install
Again, this is a quick hack and perhaps not the way you'd go about doing serious local development, but I found it easy enough for what I wanted. Check out
lein help tutorial
for much more infoCreate a private Maven Repository, and then, add the following to your
project.clj
If the jars are based on your own projects, you can use
lein install
to put them into your local .m2, or use the checkout-dependencies feature.You can also use the extra-classpaths feature, etc.