简体   繁体   English

第谷| 如何使用tycho构建同一插件的多个版本

[英]Tycho | How to build multiple version of same plugin using tycho

I have a plugin which contains other plugins and feature projects. 我有一个包含其他插件和功能项目的插件。

I am able to build plugin using tycho and I am getting deliverable in eclipsepluginupdateSite\\target in zip format which is working fine for single version of eclipse. 我能够使用tycho构建插件,并且我正在以zip格式在eclipsepluginupdateSite \\ target中获得可交付,这对单个版本的eclipse工作正常。

Now I am facing error how to configure tycho for to build multiple version of same plugin? 现在我面临错误如何配置tycho来构建同一插件的多个版本?

In manual process I am following below steps: 在手动过程中,我遵循以下步骤:

For example I want to create a plugin with version 4.8.800 along with(4.6.612,4.7.711) versions 例如,我想创建一个版本为4.8.800的插件以及(4.6.612,4.7.711)版本

  1. Delete eclipsepluignupdatesite features, plugins, artifacts.jar and content.jar 删除eclipsepluignupdatesite功能,插件,artifacts.jar和content.jar
  2. Copy previous versions features, plugins, artifacts.jar and content.jar in eclipsepluignupdatesite (eg previous version plugin is 4.6.612,4.7.711) 复制eclipsepluignupdatesite中的先前版本功能,插件,artifacts.jar和content.jar(例如,以前的版本插件是4.6.612,4.7.711)
  3. Use export wizard for build plugins. 使用导出向导构建插件。
  4. Now In eclipsepluginupdatesite I found features, plugins, artifacts.jar and content.jar with contains plugin version 4.6.612,4.7.7.711 and also 4.8.800 现在在eclipsepluginupdatesite中我发现了包含插件版本4.6.612,4.7.7.711以及4.8.800的功能,插件,artifacts.jar和content.jar

I copied whole eclipsepluginupdate contents under a host server url. 我在主机服务器url下复制了整个eclipsepluginupdate内容。 When I use that url to install plugin It shows me three category 4.6,4.7,4.8 Under each category I have plugin 4.6.3.612, 4.7.0.711, 4.8.0.800 and I can install any plugin. 当我使用该url安装插件它向我展示了三个类别4.6,4.7,4.8在每个类别下我有插件4.6.3.612,4.7.0.711,4.8.0.800我可以安装任何插件。

sample screen shots 样本截图

多个版本插件]![在此处输入图像说明

Using tycho I am able to build single plugin but I am not getting how to build plugin along with previous plugins using tycho. 使用tycho我能够构建单个插件,但我没有得到如何使用tycho与以前的插件一起构建插件。 Please help me out 请帮帮我

Currently , it is not possible to build a p2 repository with multiple versions of plug-ins (unless these plug-ins are non-singletons and could also be installed at once). 目前 ,无法构建具有多个插件版本的p2存储库(除非这些插件是非单例插件,也可以一次安装)。

But what you can do is to build a p2 repository for each version separately, and later join these repositories together through a composite repository. 但您可以做的是分别为每个版本构建一个p2存储库,然后通过复合存储库将这些存储库连接在一起。 This question has an answer with an example of how to do this. 这个问题的答案是如何做到这一点的一个例子。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM