【发布时间】:2017-01-02 12:11:14
【问题描述】:
我正在开发一个使用 Apache Felix 作为运行时的 OSGi 应用程序。我使用 Maven 下载 httpclient-osgi。我已经在框架中安装了包。但它会导致以下异常。
似乎我缺少一个导出 org.apache.httpcomponents.httpclient 的包。但我真的不知道哪个包会导出那个包。
org.osgi.framework.BundleException: Unable to resolve org.apache.httpcomponents.httpclient [3](R 3.0): missing requirement [org.apache.httpcomponents.httpclient [3](R 3.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.cm)(version>=1.3.0)(!(version>=2.0.0))) Unresolved requirements: [[org.apache.httpcomponents.httpclient [3](R 3.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.cm)(version>=1.3.0)(!(version>=2.0.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4111)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2117)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984)
at compilerMain.Main.main(Main.java:39)
感谢您的回复
【问题讨论】:
标签: java maven osgi osgi-bundle