java - Importing package from target in OSGi bundle -
i'm having problems importing package in osgi bundle.
the package called org.semanticweb.hermit.datatypes.xmlliteral
included in jar file org.semanticweb.hermit.jar
. jar included in target definition , selected in run configuration. target recognizes osgi bundle, shouldn't problem. when try import package in own bundle error saying no bundle exports package. knows problem?
checking standard download "org.semanticweb.hermit.jar", has no export-package. therefore none of packages within jar usable other osgi components.
update:
the pax-url wrap plugin can wrap non-osgi jar osgi bundle , add arbitrary manifest lines.
https://ops4j1.jira.com/wiki/display/paxurl/wrap+protocol
there may reason don't include export-package. may want ask creator(s) directly make sure aren't looking trouble.
you can update jar have, use when deploying. there ton of options actually.
you can see how project it:
they create pom.xml , provide own manifest entries using maven bundle plugin.
Comments
Post a Comment