maven - 自动化 Leiningen 本地依赖管理

标签 maven clojure dependency-management leiningen

我正在使用本地 Maven 存储库来存放一些我用来开发项目的代码。我在我的 project.clj 中引用了这个存储库文件,现在我能够以这种方式依赖本地 jars(如何在我以前的 question 中做到这一点)。

由于我正在积极开发这些项目,我有我的project.clj寻找 LATEST 的文件版本。但是,为了更新依赖项,我仍然需要增加该依赖项的版本号,然后运行 ​​lein install将其构建到 Maven 存储库。

当我构建依赖于 maven repo 的项目的项目时,leiningen 是否有办法做到这一点? lein 可以只寻找那些东西并根据需要重建它们吗?

最佳答案

如果你想并行开发两个项目,一个依赖另一个,你可以在 checkouts 中使用符号链接(symbolic link)。目录以避免必须一直安装快照。

引用 Leiningen README :

Q: I want to hack two projects in parallel, but it's annoying to switch between them.
A: Use a feature called checkout dependencies. If you create a directory called checkouts in your project root and symlink some other project roots into it, Leiningen will allow you to hack on them in parallel. That means changes in the dependency will be visible in the main project without having to go through the whole install/switch-projects/deps/restart-repl cycle. Note that this is not a replacement for listing the project in :dependencies; it simply supplements that for tighter change cycles.

关于maven - 自动化 Leiningen 本地依赖管理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8411750/

相关文章:

maven-2 - Maven : How to remove dependencies if they are already transitive?

php - 使用 Composer,多个项目之间可以共享依赖吗?

maven - 在 maven 2 依赖树中解释 "omitted for conflict"

apache - 坚持部署 WAR 文件。 "FAIL - Application at context path/could not be started"

java - 使用 Arquillian Shrinkwrap Resolver Maven 从 pom.xml 读取依赖项

运行 jar 时 Clojure 宏很奇怪

Clojure: "thread-first"宏 -> 和 "thread-last"宏 ->

maven - 莱宁根:如何在project.clj中设置Maven groupId和打包属性

maven - 使用通配符使用 maven-assembly-plugin 复制文件夹

algorithm - 在 Clojure 中实现 Minimax 算法 - 具有多个递归调用的条件函数