Thank you for the advice and I will explore the Archiva initiative, however, I think it would do for jars, but not to managing application resources during development. For example, pictures used in the application may change several times a day, depending on how designers work, and having it managed by something other than the trivial OS filesystem is an overkill.. Besides that, the java engine that I am using, has it's own means of loading files from locations available for search which, I think, does not include getting something from a repository...
среда, 31 июля 2013 г., 20:19:21 UTC+4 пользователь red...@gmail.com написал: > > On 7/31/13 4:18 AM, Alex Fowler wrote: > > I have an application which is built fine with uberjar with an exception > of > > two things which do not get incuded: > > 1) Additonal jar files (about 150Mb) from various Java libraries that > are > > not present on Clojars and that I have no power of will or time of > trying > > to upload them there. This folder is speciiified with :resource-paths in > > project.clj.... > > 2) About 150Mb of resources such as pictures and video-files which are > > loaded by these java libraries using *their own methods* which I cannot > > change. > > > > What lein uberjar does - it skips these files and simply creates an > > incomplete jar with my compiled sources, which does not launch because > it > > is missing those files. However, "lein run" works just fine! > > > > My question is: how do I make a single jar with lein that, being run > with > > "java -jar" exposes the same behavior as simply "lein run"? > > > > PS: As an idea: when I was programming in Scala, I was using > > "com.jdotsoft.jarloader.JarClassLoader" which was the entry point in my > app > > and I could simply put all files into the jar and it would search them > in > > that order: > > 1) recursively inside the jar > > 2) in the same folder as the jar (which would allow simple externalizing > of > > files like settings files if needed to be exposed to users). > > 3) in system path folders... > > Maybe there is a way to use that magical JarClassLoader with > > Leiningen/Clojure? > > > > clojars is just a maven repo, and a simple maven repo is just a http > server. > > you can setup your own "private maven repo" easily by copying the > directory structure of your ~/.m2 to an http server somewhere. > > for something more full featured you can setup something like apache > archiva (which is what I use at work) http://archiva.apache.org/index.cgi > > once you have a private maven repo you can deploy whatever you want to > it, and use whatever you deploy has a dependency as normal > > > -- > And what is good, Phaedrus, > And what is not good-- > Need we ask anyone to tell us these things? > > -- -- 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/groups/opt_out.