On 12/27/2014 02:02 AM, Emmanuel Lécharny wrote:
> I'd liek to rule out commons-pool and test commons-pool2, but it seems like
> it does not please the osgi test, so here, my question is :
> - how do we chnage the osgi test to accpet commons.pool2 as dependency ?
>
> Any input woud be very welcome !
>
>
commons-pool2 2.2 itself is a proper OSGi bundle.
It has Maven dependency to cglib 3.0 and asm-util 4.0, both with scope
"provided", and both are *not* valid OSGi bundes.
In manifiest.mf it imports "net.sf.cglib.proxy" but as cgilib is only
declared with scope provided it is not considered. Adding cgilib
dependency to integ-osgi/pom.xml doesn't help as cgilib is no valid OSGi
bundle. But for the rescue ServiceMix provides a bundle. So when adding
this to the integ-osgi/pom.xml it should work:
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-pool2</artifactId>
<version>2.2</version>
</dependency>
<dependency>
<groupId>org.apache.servicemix.bundles</groupId>
<artifactId>org.apache.servicemix.bundles.cglib</artifactId>
<version>3.0_1</version>
</dependency>
I think the cgilib is only required if the proxy feature is used. And
the good news is that in current commons-pool2 2.3-SNAPSHOT manifiest.mf
the cgilib is defined as optional:
https://issues.apache.org/jira/browse/POOL-261
Kind Regards,
Stefan