2014-09-10 33 views
0

我正在尝试使用OSGi包,但它卡在“已安装”状态,无法解析。当我尝试启动它,我得到以下信息:OSGi导入包:我收到了错误的包吗?

org.osgi.framework.BundleException: Could not resolve module: org.apache.felix.gogo.usocklistener [6] 
    Unresolved requirement: Import-Package: org.osgi.service.command; version="0.7.0.SNAPSHOT" 

这是我目前的束列表:

START LEVEL 6 
    ID|State  |Level|Name 
    0|Active  | 0|OSGi System Bundle (3.10.100.v20140909-1519) 
    1|Active  | 4|OSGi Release 4.2.0 Services (3.4.0.v20140909-1519) 
    2|Active  | 4|OSGi Release 4.2.0 Utility Classes (3.3.0.v20140909-1519) 
    3|Active  | 4|Apache Felix Gogo Command (0.14.0) 
    4|Active  | 4|Apache Felix Gogo Runtime (0.12.1) 
    5|Active  | 4|Apache Felix Gogo Shell (0.10.0) 
    6|Installed | 4|Apache Felix Gogo USockListener (1.0.0.SNAPSHOT) 
    7|Installed | 4|Apache Felix Web Management Console (4.2.3.SNAPSHOT) 
    8|Active  | 4|Apache Felix Configuration Admin Service (1.8.1.SNAPSHOT) 
    9|Active  | 4|Apache Felix EventAdmin (1.3.2) 
    10|Active  | 4|Console plug-in (1.1.100.v20140828-1547) 
    11|Active  | 4|Log Service Bundle (1.2.300.v20140828-1634) 
    12|Active  | 4|Http Services Servlet (1.1.500.v20140909-1612) 
    13|Installed | 4|Jetty Http Service (3.0.200.v20140828-1634) 
    15|Active  | 4|servlet-api bundle (2.4.0.SNAPSHOT) 

所以,很显然,我需要org.osgi.service.command束,至少v0.7.0的(这是“至少”,而不是“完全”,对不对?)。但我有org.eclipse.osgi.services-3.4.0包,它是活动的。如果那不包含我需要的命令包,那么我不知道在哪里寻找。

请问org.eclipse.osgi.services-3.4.0包括org.osgi.service.command?如果不是,我在哪里可以找到org.osgi.service.command(最好是源代码形式而不是二进制形式)?

回答