You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Charles Moulliard <cm...@gmail.com> on 2010/02/19 13:02:30 UTC

Dependency with javax.* packages

Hi,

I have discovered something strange that I don't understand and I need a
solution

If in the maven-bundle-plugin instruction, I had the * in the ImportPackage
instruction and that my bundle has dependencies with javax.* packages (like
javax.xml, ...), then the MANIFEST.FS file which is generated contains the
package import statement javax.xml;version="1.4"

When my bundle is deployed top of Fuse 4.2 server, I get an unresolved
dependency. This is logic as the javax.* packages of the java VM are
exported with the version number = "0.0.0" and not "1.4"

What is the trick to avoid this problem (using DynamicImport-Package =
javax.*,org.w3c.*,org.xml.*) ?

Kind regards,

Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com
twitter : http://twitter.com/cmoulliard
Linkedlin : http://www.linkedin.com/in/charlesmoulliard

Apache Camel Group :
http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm