You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Pierre De Rop (JIRA)" <ji...@apache.org> on 2018/09/23 22:46:00 UTC
[jira] [Created] (FELIX-5938) DM not working with latest Felix
Framework
Pierre De Rop created FELIX-5938:
------------------------------------
Summary: DM not working with latest Felix Framework
Key: FELIX-5938
URL: https://issues.apache.org/jira/browse/FELIX-5938
Project: Felix
Issue Type: Bug
Components: Dependency Manager
Reporter: Pierre De Rop
Assignee: Pierre De Rop
When using the latest Felix framework, DM is not resolved:
{code:java}
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)))]{code}
Surprisingly, bnd generates an odd import range and excludes the 1.9 version.
Fixing the DM bnd like this resolves the issue:
{code:java}
Import-Package: !org.junit,!org.mockito.*,org.osgi.framework;version="[1.8, 2)",*
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)