我在做一个Demo时,需要在OSGi中嵌入 http服务器。按照下面的配置方法配置:
启动后的报错如下:
The bundle "org.eclipse.equinox.console_1.0.100.v20130429-0953 [14]" could not be resolved. Reason: Missing Constraint: Import-Package: org.apache.felix.service.command; version="0.8.0"
其实,这是因为缺少这三个包造成的:
org.apache.felix.gogo.runtime
org.apache.felix.gogo.command
org.apache.felix.gogo.shell这三个包,加入以后问题解决。
原文链接:https://www.eclipse.org/forums/index.php/t/368771/