Hey,
I had this problem with a jar from Bing which is not available on maven.
You can use a local repo without any plugins or extra work for "others".
Try this:
Pick a directory for your local maven repo, should be inside your git repo.
I'm using "maven".
Take your jar and run
mvn deploy:deploy-file -Dfile=lib/bing-reporting.jar
-DartifactId=bing-reporting -Dversion=1.0.0 -DgroupId=smartchecker
-Dpackaging=jar -Durl=file:maven
Obviously change your arguments, the important part is: -Durl=file:maven
where "maven" is the directory.
Then in your project.xml
add
:repositories {"local" "file:maven"}
and depend on the jar as usual
[smartchecker/bing-reporting "1.0.0"]
uberjar works as well as the rest.
Hope that helps,
/thomas
On Wednesday, July 23, 2014 12:43:38 PM UTC+2, Yura Perov wrote:
>
> 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 [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.