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

半城伤御伤魂 提交于 2019-12-11 08:23:58

问题


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.

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:

For example I want to create a plugin with version 4.8.800 along with(4.6.612,4.7.711) versions

  1. Delete eclipsepluignupdatesite features, plugins, artifacts.jar and content.jar
  2. Copy previous versions features, plugins, artifacts.jar and content.jar in eclipsepluignupdatesite (e.g. previous version plugin is 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

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.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.

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. Please help me out


回答1:


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).

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.



来源:https://stackoverflow.com/questions/21329069/tycho-how-to-build-multiple-version-of-same-plugin-using-tycho

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!