Niclas Hedhman skrev:
On Tuesday 14 August 2007 05:56, Daniel Fagerstrom wrote:
I tried to use the Felix Commons version of commons-loggings, but its
required dependency graph was huge.
Your case is specific to logging[1] and IMHO not really representative.
I chose logging as an example as it was the most complicated, but there
where some other libraries that where fairly complicated as well.
Secondly, you have a strong point that "good wrapping requires effort", which
I totally agree with. And in fact, that is one good reason to question
the "en masse" wrapping of thrid-party jars that people embarked on here,
without much second thought whether the bundle would work or not.
Have some trust in community power. If people find it useful there will
be feedback and improvements, and sooner or later it will be good
enough. If people not are interested, it doesn't matter if the quality
is low.
My point
is, this is a separate concern.
What Stuart is essentially saying is that the Maven Bundle plugin can use a
POM artifact (housed at Felix, sure) that will do the wrapping at your end
for you. No need to create a copy of repo1.maven.org which just has different
manifest in the jars and another POM.
That is good enough for an in house project. But I'm interested in
running Cocoon under OSGi. If we make that work well we are going to
want to release it. And then all artifacts that we depend on will need
to be in a Maven repository. For me it makes much more sense to have
these common libraries managed and released from Felix than from Cocoon
(and every other Apache project that might go the OSGi way).
End of the day, every built bundle that is wrapping the same third-party jar
will be identical (probably some Build-Date entry will differ), without
effort on your part. Is that bad? Or is it just that you need to use the
Bundle plugin that bothers you? I think it is just that you assumed that you
have to put in an effort...
I have bundelized a number of libraries with the bundle plugin and am
very happy with it. It is a large improvement compared to previous
bundle build tools. I'll donate them to Felix commons when I find them
stable enough. But if Felix Commons not is going to release anything it
will be of much less use for other Apache projects, like Cocoon.
/Daniel