简体   繁体   English

如何将Maven插件转换为Leiningen一个

[英]How to convert a maven plugin to a leiningen one

Hi I am trying to add the hapi-fhir library to a clojure project. 嗨,我正在尝试将hapi-fhir库添加到clojure项目中。 Does anyone now how to add the tender plugin entry : http://hapifhir.io/doc_tinder.html in the project.clj 是否有人现在如何在项目.clj中添加招标插件条目: http ://hapifhir.io/doc_tinder.html

Based on the details you provided and assuming you have the associated jar file in your local .m2 repository, you should be able to just add 根据您提供的详细信息,并假设您在本地.m2存储库中具有关联的jar文件,则应该可以添加

[ca.uhn.hapi.fhir/hapi-tinder-plugin "2.3-SNAPSHOT"] [ca.uhn.hapi.fhir / hapi-tinder-plugin“ 2.3-SNAPSHOT”]

However, if you do not have the library in your local .m2 or for some reason, you cannot get that to work, I would recommend getting hold of the jar file for the library and use lein-localrepo . 但是,如果您在本地.m2中没有该库,或者由于某种原因而无法使用它,我建议您抓住该库的jar文件并使用lein-localrepo Using this plugin you should be able to install the jar file in your local repo and use it from lein. 使用此插件,您应该能够在本地仓库中安装jar文件,并从lein使用它。 This will require using (:impor ...) and Clojure Java interop of course. 当然,这需要使用(:impor ...)和Clojure Java互操作。

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

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