【问题标题】:How to resolve required bundle for Eclipse plugin如何解决 Eclipse 插件所需的捆绑包
【发布时间】:2018-05-09 09:08:51
【问题描述】:

我想使用 Tycho 依次构建一些 Eclipse 插件(比如 A、B、C、D),然后在构建完所有插件后将它们放入 p2 存储库中。

现在,插件 B 依赖于插件 A。在插件 B 的清单文件中,A 在所需的捆绑部分中给出。

但是,由于 A 不存在于 p2 存储库中,因为我在最后构建 p2 存储库,即一旦构建了所有插件。因为我想为所有插件构建一个 p2 存储库(数量约为 50)。

这些所有插件都存在于单个文件夹中。

如何解决这种依赖关系?

【问题讨论】:

标签: maven eclipse-plugin tycho p2


【解决方案1】:

您可以遵循与“Custom pom.xml filename in maven multimodule for tycho”中描述的类似的多模块模式

<!-- in file pom.xml -->
<modules>
  <module>A/pom.xml</module>
  <module>B/pom.xml</module>
  <module>C/pom.xml</module>
  <module>D/pom.xml</module>
</modules>

<!-- in file pom-tycho.xml -->
<modules>
  <module>A/pom.xml</module>
  <module>B/pom.xml</module>
  <module>C/pom.xml</module>
  <module>D/pom.xml</module>
</modules>

这个想法是多模块项目中的构建顺序遵循&lt;module&gt; 元素中的声明顺序。

【讨论】:

    猜你喜欢
    • 2016-12-08
    • 1970-01-01
    • 1970-01-01
    • 2010-10-15
    • 1970-01-01
    • 2011-05-16
    • 2023-03-18
    • 2015-03-12
    • 2012-08-22
    相关资源
    最近更新 更多