Dependencies in maven local repositories with leiningen

天涯浪子 提交于 2019-11-30 05:20:41

You can use lein-localrepo instead of the lengthy mvn command: https://github.com/kumarshantanu/lein-localrepo

Install like this:

lein localrepo coords target/goose-2.1.6.jar | xargs lein localrepo install

However, that alone will not help to install the POM file in the repo. You should additionally run this:

cp pom.xml ~/.m2/repository/goose/goose/2.1.6/goose-2.1.6.pom

Note that in this example Goose will be installed as groupId=goose, artifactId=goose. You can override that if you wish, and probably you should.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!