Okay, since it's been a while since I last did this, I realised I'd mixed things up and `lein install/push` wasn't ever the right solution... But for future reference and those interested the correct steps for manually deploying jars are:
Steps 1 & 2 from above, i.e.: 1) Create a lein project folder with `lein new jogl-repack` 2) Edit the project file to only contain the bare minimum: (defproject org.clojars.{your_clojars_username}/{libname} "{version}" :description "blah blah" :url "http://...") 3) copy the bundled jar into the project folder, ensure it's named {libname}-{version}.jar 3) lein pom 4) scp -i ~/.leiningen/id_rsa pom.xml {libname}-{version}.jar cloj...@clojars.org: Hth! On 26 April 2013 10:21, Karsten Schmidt <toxmeis...@gmail.com> wrote: > Hi all, > > I'm trying to repack an existing Java lib with native dependecies and deploy > it to Clojars. I need to repackage the original library so that its native > parts are stored in a lein compatible layout. In the past (lein 1.x era) I > had no problems with that, but I just can't get this to work under lein2. > > My steps for lein2 are: > > 1) Create a lein project folder with `lein new jogl-repack` > 2) Edit the project file to only contain the bare minimum: > > (defproject org.clojars.toxi/jogl "2.0.0-rc11" > :description "blah blah" > :url "http://jogamp.org/") > > 3) Place the repackaged "jogl-2.0.0-rc11.jar" in the `target` subfolder of > the project > > Attempting `lein install` with this setup generates the correct POM, but > always overwrites my existing jar with a new one, only containing the > manifest and project.clj... The same goes for `lein push`. Not good! > > Is there any way to avoid the regeneration of the jar file? What is the > correct procedure to repackage an existing jar and deploy it with leiningen > 2? There seems to be a gap in the documentation for this use case and I'd be > happy to contribute a guide once I know the correct steps. > > A related question: Now that I managed to push such an empty jar to clojars, > is there any way to replace or remove it? > > FWIW Here's an older (successful) example of that process: > https://clojars.org/org.clojars.toxi/jogl But now I need to switch to a > later version of JOGL and am really stumped... > > Thanks! > K. -- -- 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.