【问题标题】:How to get extra attributes in "resource" element of an OBR repository?如何在 OBR 存储库的“资源”元素中获取额外属性?
【发布时间】:2013-11-16 14:09:17
【问题描述】:

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

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

相反,插件可以正确理解Felix' own OBR repository,因为它似乎在“resource”元素中具有其他属性,而我们的存储库中缺少这些属性:

...
<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 fork 似乎可以完成这项工作 https://github.com/rkrzewski/bindex 但有人知道它的状态吗?有朝一日这会被整合到 Bindex 中吗? 更新:这是 Rafał 的回答,这个分叉的所有者 https://github.com/rkrzewski/bindex/issues/3#issuecomment-27784279 所以,我在 bndtools-users 谷歌群组上重新提问:https://groups.google.com/forum/#!topic/bndtools-users/ZdY0ASnLNmc

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

【问题讨论】:

    标签: osgi apache-felix bnd obr bndtools


    【解决方案1】:

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

    【讨论】:

    • 不,当前的 Bindex 版本不支持这些属性。
    猜你喜欢
    • 2013-08-18
    • 2020-08-26
    • 1970-01-01
    • 2019-05-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多