问题
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
- 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
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