2009/5/7 Niclas Hedhman <[email protected]> > On Thu, May 7, 2009 at 5:42 AM, Rickard Öberg <[email protected]> > wrote: > > Niclas, > > > > I'm having trouble running the JDBM performance tests. They complain that > > they can't find the locking library. When I look in the dependencies it > > references the locking lib, but without version nr. I assume this is > > supposed to work anyway since the parent of JDBM (extensions) has locking > > with a specified version. But, why is it marked as "provided"? This goes > for > > almost all the dependencies. Why? > > Should have a version in the <dependencyManagement> section. Is the > group/artifact Ids correct? > > provided - A lot is related to OSGi aspect of things (perhaps Stuart's > upcoming work on Maven will change this, but...). If things are not > provided, then all dependencies are pulled into the resulting Bundle > jar file. Not sure of the exact circumstances around this particular > case.
FAQ :) http://felix.apache.org/site/apache-felix-bundle-plugin-faq.html#ApacheFelixBundlePluginFAQ-WhydoIseemoreclassesinmybundleafterupgradingtomavenbundleplugin2.0.0 ? basically: 1) old plugin didn't put provided deps on the classpath passed to the BND tool 2) some people used Private-Package: * (tells BND to put whole classpath into bundle) 3) so to avoid getting deps added to bundle when using 2) => make deps provided in bundleplugin 2 you can filter what gets passed to Bnd and there are better defaults so you don't have to do this now :) (if in doubt just use "mvn clean install -X > LOG" - will include useful debug like the instructions sent to BND, etc.) Also, I am somewhat suspicious of Maven's conflict resolution, > i.e. when multiple references are made to same artifact with different > versions. > it should choose the highest version (but of course this might not be what you want...) BTW, Maven 2.1.0 supports version ranges like in OSGi "[1.0, 2.0]" Cheers > -- > Niclas Hedhman, Software Developer > http://www.qi4j.org - New Energy for Java > > I live here; http://tinyurl.com/2qq9er > I work here; http://tinyurl.com/2ymelc > I relax here; http://tinyurl.com/2cgsug > > _______________________________________________ > qi4j-dev mailing list > [email protected] > http://lists.ops4j.org/mailman/listinfo/qi4j-dev > -- Cheers, Stuart
_______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

