Replies: 5 comments 10 replies
-
I think you can achieve it with the p2 director CLI. |
Beta Was this translation helpful? Give feedback.
-
Here's an example where two bundles of different versions are installed: Here are more examples: Generally if you want two bundles of different versions both installed, something must require that. E.g., two different features that include the bundle but of different versions, or in JDT's case, one feature that includes both bundles. Another possibility is when there are bundles that must be installed and these require using version ranges that are not satisfied by a single bundle leading to both versions needing to be installed. In all cases, for there to be two versions of a bundle, there must be at least two requirements and those requirements cannot be satisfied by a single version. |
Beta Was this translation helpful? Give feedback.
-
Okay, maybe it was not clear enough, but I require a solution that can be used by a user using Eclipse P2 UI, I know I can archive this for example to create a feature that require both exact versions but what I want is that I have an update site and a user can select to have Version 1, 2, 3, 4 or any combination like 2,4 ... this is currently refused by P2 because it says I can't install for example 2 because a newer version is already installed :-( |
Beta Was this translation helpful? Give feedback.
-
I think the overall approach of using multiple versions to contribute distinct features is dangerous. p2 doesn't understand it well as you can see, the extension registry neither, as it's the usual interpretation of a version that newer versions of X is meant to be used in place of older version of X when possible. |
Beta Was this translation helpful? Give feedback.
-
If the only solution seems to be to design, specify, implement, and support new concepts (a new type of p2 root request) for such a use case you might want to consider if you really would be better off as @mickaelistria suggests. I.e., include the version in the symbolic name, install any combination of these, never update them, and it all works today. |
Beta Was this translation helpful? Give feedback.
-
I have the case that I want to install two bundles in different versions, but P2 refuses to install both items (they are not marked as singeltons), is there a way to make P2/Eclipse to install two versions in parallel?
Beta Was this translation helpful? Give feedback.
All reactions