简体   繁体   English

在将其部署到Clojars之前,如何使用Leiningen插件?

[英]How can I use a Leiningen plugin before I deploy it to Clojars?

I'm developing a Leiningen plugin. 我正在开发Leiningen插件。 Actually, I'm working on a patch to an existing Leiningen plugin. 实际上,我正在为现有的Leiningen插件开发补丁。 I've made some changes, and now I want to see if they work. 我做了一些更改,现在我想看看它们是否有效。

What do I do? 我该怎么办?

I made these changes to support another project I'm working on. 我进行了这些更改,以支持正在进行的另一个项目。 I'd like to point that project at my local working copy of the plugin to test my changes, but I don't see a way to do that. 我想将该项目指向该插件的本地工作副本以测试我的更改,但是我看不到这样做的方法。

Leiningen offers checkout dependencies, which solve this problem for dependencies, but not for plugins. Leiningen提供签出依赖项,它可以解决依赖项的问题,但不能解决插件的问题。 Is there an equivalent for plugins? 插件是否具有等效功能?

Publish your forked version with a different group-id, either to clojars or to your local repo (with lein install ). 将具有不同组ID的分支版本发布到clojars或本地lein install (使用lein install )。 Then, in the project that uses the plugin, depend on your new artifact-id instead of the public one. 然后,在使用该插件的项目中,取决于新的工件ID,而不是公共的工件ID。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM