在基于p2的Eclipse目标平台上添加捆绑包的方法是什么? [英] What is 'the' way to add a bundle jar to a p2 based Eclipse target platform?

查看:218
本文介绍了在基于p2的Eclipse目标平台上添加捆绑包的方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道:将一个捆绑包添加到基于p2的目标平台的最佳方式是什么?
我不想使用本地目录,我想有一个目标平台,为所有团队成员提供
的框。



/ p>

我现在的情况如下:我现在管理,但我有一种感觉,我错过了一个更直接的方式
这样做。 :



我的目标平台有一堆p2位置,托管在我们的现场服务器上。
大多数都是镜像的存储库,但我有一个用于杂项软件包。



这是我如何向目标平台添加软件包。 p>


  • 我切换到另一个工作区,其中使用带有jars的捆绑包目录。


  • 我将该包添加到我的第三方功能

  • 我导出该功能,并将其上传到我们的服务器,删除旧的

  • 我切换回我的正常工作区,并重新加载目标平台链接。



有时eclipse有点困惑,不断使用缓存版本,但是在
中,这种方法有效。



我的问题:



有更简单的方法吗?
有更多的增量方式吗?我重建了p2版本库,而不是添加
a功能与新版本。

解决方案

你应该看看p2的发布商和镜像工具。发布者创建p2元数据,通过镜像,您可以将工件复制到现有的p2存储库(给定您具有文件系统访问权限)。



还有一个由Tycho项目提供的这些工具的Maven前端。 p>

I'm wondering: What is the best way of adding a bundle to a p2 based target platform? I don't want to use local directories, I want to have a target platform that works 'out of the box' for all our team members.

Right now I manage, but I have a feeling I'm missing a more straightforward way of doing this.

My situation is as follows:

My target platform has a bunch of p2 locations, hosted at our on-site server. Most are mirrored repositories, but I have one I use for 'miscellaneous' bundles.

This is how I add a bundle to the target platform.

  • I switch to another workspace, which does use a bundle directory with jars.
  • I add the bundle jar to that directory.
  • I add the bundle to my 'third party' feature
  • I export the feature, and upload it to our server, deleting the old one
  • I switch back to my normal workspace, and reload the target platform link.

Sometimes eclipse gets a bit confused and keeps using a cached version, but in general this approach works.

My question:

Is there a easier way? Is there a more 'incremental' way? I rebuild the p2 repository, instead of adding a feature with a new version.

解决方案

You should have a look at p2's publisher and mirror tools. The publisher creates p2 metadata, and with the mirroring, you can copy artifacts into an existing p2 repository (given you have file system access).

There is also a Maven front-end to these tools provided by the Tycho project.

这篇关于在基于p2的Eclipse目标平台上添加捆绑包的方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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