0

I'm trying for a while with no success to package as jar file my resource-paths files (.dylib and .so files).

I've packaged the resources folder following this page: How to create jar file with package structure?

and I've installed the jar in my local maven repo following this page http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html

I've seen this page how to package resources in a leiningen project also but in this case it seems that the package is not used as clojure dependency in futures projects

This is my 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"])

And this is the way I'm searching for:

(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"]])

Thanks in advance!

Community
  • 1
  • 1
tangrammer
  • 3,031
  • 16
  • 24
  • 1
    Those files are packaged up as jars in the maven jar itself and it's probably not what you want. You can try packaging them up separately and including it in your dependencies. A sample is here: https://github.com/zcaudate/sigar-native-deps – zcaudate Apr 11 '14 at 20:36
  • @zcaudate thanks a lot! – tangrammer Apr 11 '14 at 23:01

0 Answers0