如何在OBR存储库的“资源”元素中获取额外的属性



我们尝试让Apache Felix Web Console OBR插件与当前BND工具/Bindex生成的OBR存储库一起工作。

问题是生成的存储库(例如,使用 Eclipse 的"Release Bundles"生成的存储库)无法被 Felix Web 插件读取。

相反,插件可以正确理解 Felix 自己的 OBR 存储库,因为它似乎在"资源"元素中具有其他属性,而这些属性在我们的存储库中缺失:

...
<resource 
   id="org.apache.felix.bundlerepository/1.4.1"
   symbolicname="org.apache.felix.bundlerepository"
   presentationname="Apache Felix Bundle Repository"
   uri="http://repo1.maven.org/maven2/org/apache/felix/org.apache.felix.bundlerepository/1.4.1/org.apache.felix.bundlerepository-1.4.1.jar"
  version="1.4.1">
...

http://www.osgi.org/download/rfc-0112_BundleRepository.pdf 中的模式规范为"资源"XML元素中的属性留出了空间,但是它们被定义为Java API的一部分。

这个 gitHub 分叉似乎可以 https://github.com/rkrzewski/bindex 完成这项工作,但有人知道它的状态是什么吗?有一天会将其集成到Bindex中吗?更新:这是这个叉子的主人拉法乌的答案 https://github.com/rkrzewski/bindex/issues/3#issuecomment-27784279所以,我在bndtools用户谷歌组上重新询问了:https://groups.google.com/forum/#!topic/bndtools-users/ZdY0ASnLNmc

或者是否有任何其他方法可以使用缺少的资源属性生成 OBR 存储库?谢谢。

Bindex的开发转移到了 https://github.com/bndtools/bindex。(来源:https://groups.google.com/d/msg/bndtools-users/R3U2SDazTjY/OyOVTK8DZHUJ)此版本是否为您创建了正确的格式?

最新更新