【问题标题】:What is the format of the bundle properties for karaf's features-maven-plugin generate-features-xml goalkaraf 的 features-maven-plugin generate-features-xml 目标的捆绑属性格式是什么
【发布时间】:2013-02-22 01:32:07
【问题描述】:

要列出您希望包含在生成的 features.xml 中的一堆包,文档说:

bundles File     A properties file that contains a list of bundles that will be used to generate the features.xml file

但它忽略了说明这个文件应该是什么格式。文档给出了例子:

        <execution>
          <id>generate</id>
          <phase>generate-resources</phase>
          <goals>
            <goal>generate-features-xml</goal>
          </goals>
          <configuration>
            <bundles>src/main/resources/bundles.properties</bundles>
            <outputFile>target/features.xml</outputFile>
          </configuration>
        </execution>

有人知道这个文件应该是什么样子吗?

【问题讨论】:

  • 你试过groupId:artifactId:type[:classifier]:version吗?文档中说如下示例生成一个安装包mvn:org.apache:bundle1:1.0 的功能。我认为格式应该是一样的。
  • @marathon - 运气好能找到答案吗?

标签: maven osgi apache-karaf


【解决方案1】:

正确的格式是

groupId/artifactId/version/type

示例:

org.apache/bundle1/1.0/bundle

对于它的价值,我试图让功能插件为我工作,但它没有,部分原因是文档不佳。我想动态构建一个 features.xml 来替换我的包的版本和我的功能中的包。使用 maven 过滤来实现我的目标更容易,所以我就是这样做的。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-08-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-11-25
    • 1970-01-01
    • 2023-03-09
    • 2014-09-20
    相关资源
    最近更新 更多