Hi,

Per the OSGi spec, the version=0 here means version=[0, infinite), actually 
it's default version range so you needn't explicitly have it.

About the JDBC driver classname issue, I believe you run into a problem 
explained here[1], please take a look

[1]http://freemanfang.blogspot.com/2012/03/how-to-use-jdbc-driver-in-osgi.html
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat



On 2014-3-20, at 上午1:01, asookazian2 wrote:

> what does version=0 mean/do?
> 
> <Import-Package>com.mysql.jdbc;resolution:=optional;version=0</Import-Package>
> 
> Also, I have optional JARs b/c we're not sure which RDBMS vendor the client
> will be using.  But I want maven-bundle-plugin to resolve all the other
> dependencies in Import-Package for me.  How do I write this?  thx.
> 
> 
> 
> --
> View this message in context: 
> http://karaf.922171.n3.nabble.com/using-version-0-in-Import-Package-tp4032333.html
> Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to