问题描述
我有一个包含其他插件和功能项目的插件。
I have a plugin which contains other plugins and feature projects.
我能够使用tycho构建插件,并且可以在zip中的eclipsepluginupdateSite\target中交付
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以构建同一插件的多个版本?
Now I am facing error how to configure tycho for to build multiple version of same plugin?
在手动过程中,我按以下步骤操作:
In manual process I am following below steps:
例如,我想创建一个版本为4.8.800以及(4.6的插件)。 .612,4.7.711)版本
For example I want to create a plugin with version 4.8.800 along with(4.6.612,4.7.711) versions
- 删除eclipsepluignupdatesite功能,插件,artifacts.jar和content.jar
- 在eclipsepluignupdatesite中复制先前版本的功能,插件,artifacts.jar和content.jar(例如,先前版本的插件为4.6.612,4.7.711)
- 使用导出向导进行构建
- 现在在eclipsepluginupdatesite中,我发现了功能,插件,artifacts.jar和content.jar,其中包含插件版本4 .6.612,4.7.7.711以及4.8.800
- Delete eclipsepluignupdatesite features, plugins, artifacts.jar and content.jar
- Copy previous versions features, plugins, artifacts.jar and content.jar in eclipsepluignupdatesite (e.g. previous version plugin is 4.6.612,4.7.711)
- Use export wizard for build plugins.
- 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
我将整个eclipsepluginupdate内容复制到了主机服务器URL下。
当我使用该URL安装插件时,它向我显示了三个类别4.6、4.7、4.8
在每个类别下,我都有插件4.6.3.612、4.7.0.711、4.8.0.800,并且我可以安装任何插件。
I copied whole eclipsepluginupdate contents under a host server url.When I use that url to install plugin It shows me three category 4.6,4.7,4.8Under each category I have plugin 4.6.3.612, 4.7.0.711, 4.8.0.800 and I can install any plugin.
示例屏幕截图
使用tycho我可以构建单个插件,但是我没有得到如何使用tycho构建插件以及以前的插件。
请帮帮我
Using tycho I am able to build single plugin but I am not getting how to build plugin along with previous plugins using tycho.Please help me out
推荐答案
,目前无法使用多个版本的插件构建p2存储库(除非这些插件是非单一插件,并且也可以
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. This question has an answer with an example of how to do this.
这篇关于第谷如何使用tycho构建相同插件的多个版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!