Replies: 4 comments 9 replies
-
Yes, it's a p2 thing. An IU's metadata can contain touchpoint instructions to add (or remove) a repository. E.g., search for https://download.eclipse.org/eclipse/updates/4.35-I-builds/I20241223-0230/content.xml I'm not sure if you have your own product definition or reuse an existing product IU. Product IUs typically do specify the update site from which to update, but often this is done for features a well. |
Beta Was this translation helpful? Give feedback.
-
Ingo, I build several company products, which all have their own product definition, and none of them magically adds update sites, but only the ones that I list in the product definition (or in myproduct.p2.inf, if one prefers that). We disable the built-in update check via plugin_customization.ini, not sure if that might also be relevant for the final list of update sites. |
Beta Was this translation helpful? Give feedback.
-
I just wanted to mention that even though the P2 thing can be made to work it can become tedious as you actually need to check once in a while if something changed (e.g. new things are used or some use versioned sites and so on) and make sure things are applied in the right order. For the described case
I would recommend a different approach: As you have an own product and are in full control of its contents, simply do what P2 would do in a programmatically way and write a litte piece of code that removes all update sites on startup and only retain (or add) the one that you want. This could be a static configured set in code, a system property, a configuration file or you can even fetch the list dynamically from a webserver or active directory. |
Beta Was this translation helpful? Give feedback.
-
Simply calling
I'll try the other solution where RemoveRepositoryAction is called after the product start. |
Beta Was this translation helpful? Give feedback.
-
I have project that builds Eclipse based only on mirrored updatesites listed in a respective
eclipse.p2.inf
file. I build the project with Tycho 4.0.8.Note: Neither the
eclipse.p2.inf
file nor thepom.xml
nor any other file in the project list the original updatesites.When I start Eclipse for the first time, it contains not only the mirrored updatesites but also the original updatesite https://download.eclipse.org/releases/latest and also https://download.eclipse.org/technology/epp/packages/latest/.
Since I don't think this is a Tycho-feature but maybe rather a thing in p2, I'm adding the discussion here.
My question is: Is there a way to make sure an RCP-based product solely works on pre-registered updatesite-mirrors?
Here's why this is a problem for me
Thank you in advance for any hint!
Ingo
Beta Was this translation helpful? Give feedback.
All reactions