Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
When using the latest Felix framework, DM is not resolved:
org.osgi.framework.BundleException: Unable to resolve org.apache.felix.dependencymanager [5](R 5.0): missing requirement [org.apache.felix.dependencymanager [5](R 5.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.framework)(version>=1.8.0)(!(version>=1.9.0))) Unresolved requirements: [[org.apache.felix.dependencymanager [5](R 5.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.framework)(version>=1.8.0)(!(version>=1.9.0)))]
Surprisingly, bnd generates an odd import range and excludes the 1.9 version.
Fixing the DM bnd like this resolves the issue:
Import-Package: !org.junit,!org.mockito.*,org.osgi.framework;version="[1.8, 2)",*