Yep, I have to repackage the transitive deps too but so far it's not proven to be a major hassle. I only have 10 or so clojure deps in total but the automatic manifest creation is the real timesaver.
Paudi Sent from my iPhone On 17 Mar 2012, at 09:34, Laurent PETIT <laurent.pe...@gmail.com> wrote: > Hi, > How do you handle transitive dependencies ? > > Like, if you're repackaging library lib into my.osgi.lib, you'll also have to > e.g. repackage library foo which library lib depends on as my.osgi.foo, and > also change my.osgi.lib's pom.xml so that it now depends on library > my.osgi.foo ... ? > > Also, I don't know if you're creating Eclipse plugins, but one problem I'm > having right now, for example, is how to "repackage" leiningen-core (the core > of lein2) into a set of bundles that can be included in their own "Leiningen" > Feature. > > Currently, I'm doing it the quick&dirty way: I use a specificity of Equinox > which allows me to have jars inside a bundle, and so the repackaged Leiningen > bundle is just a big bundle with a ton ( more than 30!) dependencies in it. > > I shall say it's working quite great, but I'm open to cleaner solutions if > they do not require much overhead. > > 2012/3/17 Paudi Moriarty <pmoria...@annadaletech.com> > It would be nice to setup a repository of Clojure bundles somewhere since the > bundling process is now pretty straightforward. > > I have to use AOT as I can't ship source so The protocol issue with AOT is a > bit frustrating. We end up having to AOT every bundle. This is acceptable to > me as I have to bundlize every clojure dependency anyway. Would be nice to > avoid it however. > > I'll share my bundling projects on GitHub anyway so you can see how I'm > dealing with transitive dependencies and sources. > > Paudi > > > On 17 Mar 2012, at 05:04, Mark Derricutt <m...@talios.com> wrote: > > > Awesome. I see you're using the dependency plugin to only copy your > > specific AOT classes, I should really update the clojure-maven-plugin to > > only copy the discovered namespaces along. > > > > I remember Chas raised a bug years ago to fix this in the actual clojure > > compiler but I don't think it ever got resolved.... > > > > Since we're doing OSGi at work and we're wanting to integrate clojure I'm > > sure I'll be playing with your plugin soon :) > > > > On 17/03/12 10:48 AM, Patrick Moriarty wrote: > >> > >> I've posted the results in 2 posts on the topic if anyone is interested. > >> I've spent quite a lot of time with Clojure and OSGi lately and have had > >> some success in using Bnd and tools.namespace to generate a manifest for > >> my mixed Clojure/Java project. I'm using clojure.osgi successfully to > >> handle using requiring and loading clojure namespaces and to register and > >> track OSGi services. > >> > > > > -- > > 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 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 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 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