I was wondering the same thing and I came across your un-answered question here. The short answer appears to be http://devcenter.heroku.com/articles/local-maven-dependencies
I was looking into writing a Clojure web app that I would license to an acquaintance who is starting a business, and I wanted to see if I could give him a something that he could deploy to Heroku and manage on his own without making the source available to him (at first). This is possible to do by pushing a lein project to heroku that depends on a jar containing the main application code. (As a side note, I could be wrong but I think lein has nonconfigurable behavior to include source files in the jar. So a minor change to lein might be required for conveniently building jars with no source.) Since it would be proprietary at first (I would like to make it free later) it would make sense for the jar to be local rather than placing it in the Clojars maven repo. I thought maybe there would be a command to add a jar to a local maven repo, but from my brief research into this, it seems that "unmanaged dependencies" (linked above) is the way to do this. I haven't tried this yet, but think the only difference for Clojure projects is that it shouldn't be necessary to edit the pom, but just add the dependency as you normally would in project.clj. Rob On Aug 6, 3:52 pm, Asim Jalis <asimja...@gmail.com> wrote: > I am trying to push a Clojure app on Heroku. I have a local jar file > that the app needs. How can I get lein to use the local jar? > > When I have local jar dependencies on my personal machine I just > install the jar into the local maven repository on the machine. It's > not obvious to me how to do this on Heroku. Does anyone have any > experience with this or ideas on how to solve this? > > Thanks. > > Asim -- 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