P2存储库聚合器 [英] P2 repositories aggregator

查看:137
本文介绍了P2存储库聚合器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有几个内部p2存储库。每个存储库都有许多不同功能的版本。我们需要为我们的客户提供一个外部更新站点。我们只想汇总特定功能的特定版本。

we have several internal p2 repositories. Each repository has many versions of different features. We need to have an external update site for our clients. We would like to aggregate only specific versions of specific features. Would is a good way/tool to "aggregate" them?

例如,我们有一个p2存储库 repo1 ,它是汇总它们的好方法吗?功能 feature1 ,版本为 1.0.0 2.0.0 3.0.0 和另一个具有功能 feature2 repo2 >版本为 1.0.0 2.0.0

我们希望汇总版本和版本的 1.0.0 3.0.0 2.0.0 of feature2

For example we have a p2 repository repo1 with feature feature1 with versions 1.0.0, 2.0.0, 3.0.0 and another p2 repository repo2 with feature feature2 with versions 1.0.0 and 2.0.0.
We would like to aggregate versions 1.0.0 and 3.0.0 of feature1 and version 2.0.0 of feature2:

feature1
  1.0.0
  3.0.0
feature2
  2.0.0

当前,我们正在查看 b3 Nexus Pro 。但是也许还有更好的方法?

Currently we are looking at b3 and Nexus Pro. But maybe there is something better?

b3 仅允许汇总功能范围,而不允许特定版本。

Nexus Pro 更像是代理或魔盒。我们希望有一个单独的p2存储库的物理副本(镜像的副本)。

b3 allows only aggregating range of features and not specific versions.
Nexus Pro is more like proxy or "magic box". We want to have a separate physical copy (mirrored one) of p2 repository.

有任何建议吗?

推荐答案

p2.mirror 可以聚合指定的功能并创建p2存储库。

p2.mirror can aggregate specified features and create a p2 repository. It is possible to configure it to download only required bundles too.

这里是一个示例,其中汇总了一个功能的两个版本:

Here is an example which aggregates two versions of a feature:

<p2.mirror>
  <repository location="${repositoryPath}" name="My External p2 Repository" append="false" />
  <source>
    <repository location="http://repository:8081/p2/project1" />
    <repository location="http://download.eclipse.org/eclipse/updates/3.6" />
    <repository location="http://repository:8081/p2/project2" />
  </source>
  <iu id="dk.sorokin.maksim.feature.feature.group" version="0.0.5.201012071808" />
  <iu id="dk.sorokin.maksim.feature.feature.group" version="2.0.0.201012071540" />
  <slicingoptions followStrict="true" />
</p2.mirror>

此外,之后可以运行 eclipse.publish.featuresAndBundles 任务来对创建的存储库进行分类。

Moreover, afterwards it is possible to run a eclipse.publish.featuresAndBundles task to categorize created repository.

这篇关于P2存储库聚合器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆