-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSGi import of package com.ibm.xml.xlxp.api.stax should be resolution:=optional #152
Comments
Now that I think of it, the |
These are packages of the specific Java runtimes. Why should those be imported? |
@joehni I guess that depends OSGi runtime and its setup. Ideally, AFAIK, everything you use should be imported. In any case, the 1.4.11.1 version downloadable from central repository contains OSGi manifest that contains this (I have highlighted the important parts:
As you can see, both internals of IBM Java and Oracle Java are imported without any qualifiers, so they are hard requirements and the OSGi bundle won't resolve in either Java. |
And now that I look closer, I am not sure if |
sun.misc is available in any Java runtime ... ;-) However, I've configured the bundle plugin now to import all classes as optional. |
The XStream core package 1.4.11.1 does not resolve in OSGi environment with Oracle Java. This seems to be because its OSGi manifest is requiring import of package
com.ibm.xml.xlxp.api.stax
. This appears to be IBM Java specific package, judging from this code incom.thoughtworks.xstream.core.JVM#getStaxInputFactory
:The import should be marked with
resolution:=optional
:The text was updated successfully, but these errors were encountered: