我尝试了一段时间没有成功将包装为jar文件的资源路径文件(.dylib和.so文件)。
我已在此页面后打包资源文件夹:How to create jar file with package structure?
我在本页后面的本地maven仓库中安装了jar http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
我也看过这个页面how to package resources in a leiningen project,但在这种情况下,似乎该套餐未被用作期货项目中的clojure依赖
这是我的project.clj
(defproject quil-video "0.1.0-SNAPSHOT"
:description "extends clojure quil to use video"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
[quil/quil "2.0.0-SNAPSHOT"]]
:resource-paths ["lib/gstreamer-java.jar" "lib/video.jar" "lib/jna.jar" "lib/macosx64.jar/macosx64"])
这就是我搜索的方式:
(defproject quil-video-example "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
[quil-video/quil-video "0.1.0-SNAPSHOT"]
[quil-video/macosx64 "2"]
[quil-video/jna "1"]
[quil-video/video "1"]
[quil-video/gstreamer-java "1"]])
提前致谢!