Dear Thomas Heller, Dear Laurent Petit, > I don't quite understand the issue against using the way I described.
We just did not want to have an additional dependency of Maven. For example, Maven should be independentally installed on Windows. My suggestion then: instead of storing the jar files, unzip them in their > respective resource directories? Should solve the über jar problem if > Leiningen isn't too strict in filtering what's copied from resources > folders to final build dir. Yes, this is what we wanted, but on the other hand it creates too many files in the repository. *** For our project we have decided to depend on Maven and require user to install Maven and execute these several commands to add jars to the local repository. Thank you very much! Yours faithfully, Yura On Thursday, July 24, 2014 5:43:57 PM UTC+1, Laurent PETIT wrote: > > My suggestion then: instead of storing the jar files, unzip them in their > respective resource directories? Should solve the über jar problem if > Leiningen isn't too strict in filtering what's copied from resources > folders to final build dir. > > Le mercredi 23 juillet 2014, Yura Perov <alf...@gmail.com <javascript:>> > a écrit : > >> In my project.clj I include two jar files: >> >> :resource-paths ["resources/exterior_jars/forssj-optimization.jar" >> "resources/exterior_jars/umontreal-ssj-2.5.jar"] >> >> In my main.clj I import some objects from these dependencies: >> >> (ns myproject.main >> (:import [umontreal.iro.lecuyer.probdist ChiSquareDist]) >> ...) >> >> So I am able to use them in main.clj: >> >> (println "Hello") >> (println (. umontreal.iro.lecuyer.probdist.ChiSquareDist cdf 5 10 3.0)) >> (println "Bye") >> >> It perfectly works if I do lein run. >> >> However, if I do lein uberjar these dependencies are not included to the >> standalone jar file. >> >> I know that there exist way to use local Maven repository, but I would >> like to avoid this way to simplify things for anybody who wants to download >> the source code and compile it quickly. >> >> Could you advise, please, is it possible to somehow force Leiningen to >> include these two resources in the final standalone jar? >> >> Thank you. >> >> -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.