On Tue, Feb 5, 2013 at 9:57 AM, Ron Wheeler <[email protected]>wrote:
> [snip] > We do make a single jar for each group in the group POM and put that in the > Tomcat lib at run time. > This just keeps the clutter down. > It makes sure that we get the same versions of everything with which we > did the builds of the wars, without having to deal with 70+ jar files. > [snip] Unsure how well this fits in with OSGi. >> > > Me neither, but I would like to hear anyone's opinion. > > Well, I can tell you that wouldn't work well in OSGi. OSGi places a formal boundary around bundles, which are jars, only with OSGi metadata in their META-INF/MANIFEST.MF. It'd be pretty crazy to try to export everything properly from uberjars like these. I think a better solution would be to use OSGi plans or libraries, which is kind of targeting the ease-of-use problem. See http://www.eclipse.org/virgo/documentation/virgo-documentation-3.6.0.RELEASE/docs/virgo-user-guide/htmlsingle/virgo-user-guide.html#concepts.grouping, although I think it's documented better elsewhere (and I can't find it right now). -matthew -- mailto:[email protected] <[email protected]> skype:matthewadams12 googletalk:[email protected] http://matthewadams.me http://www.linkedin.com/in/matthewadams
