在 Servicemix 中使用 apache 目录 ldap

Using apache directory ldap in Servicemix

我在 Servicemix 6 上有一个 osgi 应用程序 运行。我添加了一些使用 apache 目录进行 ldap 查找的代码 (org.apache.directory.api.ldap)。

我在 Servicemix 中部署应用程序时出错:

 Unresolved constraint...
 (osgi.wiring.package=org.apache.directory.api.ldap.model.cursor)

我可以在 Servicemix 中使用这个 apache 库吗?如何导入?

或者,我应该使用其他库吗?

我 运行 这个命令,我认为它包装了我的依赖作为 osgi 兼容。

 bundle:install -s wrap:mvn:org.apache.directory.api/api-all/1.0.0-M33