问题描述
我已经编写了自定义clojure函数,我想在我的riemann配置中使用。我使用leiningen来构建包含我的函数的jar文件(包含依赖关系)。
I have written custom clojure functions that I want to use in my riemann configuration. I am using leiningen to build jar file (with dependencies) containing my functions. What is the right way to include this jar file in the classpath when starting riemann ?
推荐答案
我只有这样才找到了这个jar文件。我不确定这是否正确的方法:
I have only found this way. I'm not sure whether this is the right way :
java -cp/path/to/my/custom.jar:/path/to/riemann-0.2 .6 / lib / riemann.jarriemann.bin /path/to/riemann-0.2.6/etc/riemann.config
java -cp "/path/to/my/custom.jar:/path/to/riemann-0.2.6/lib/riemann.jar" riemann.bin /path/to/riemann-0.2.6/etc/riemann.config
这篇关于riemann.io将jar添加到classpath的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!