P2 director and update sites used for provisioning [message #1783788] |
Sat, 17 March 2018 11:19 |
Alex Mising name Messages: 149 Registered: March 2010 |
Senior Member |
|
|
Can P2 director pre-configure repositories used for provisioning into the installation? When I run the org.eclipse.equinox.p2.director application and use for instance:
-repository http://download.eclipse.org/releases/oxygen,http://download.eclipse.org/tools/cdt/releases/9.4,http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases
...to install:
-installIU org.eclipse.platform.ide,org.eclipse.jdt.feature.group,org.eclipse.cdt.feature.group,org.eclipse.m2e.feature.feature.group,org.eclipse.egit.feature.group,org.eclipse.xtext.sdk.feature.group,org.eclipse.xtend.sdk.feature.group
...this is all fine and gets the new CDT 9.4.2 and the newer Xtext/Xtend 2.13 (from the added update site). But when I launch eclipse the update sites used (http://download.eclipse.org/tools/cdt/releases/9.4,http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases) are treated inconsistently. When I go to "Preferences --> Install/Update --> Available Software Sites" I see:
- the CDT repository is present but disabled
- the Xtext/Xtend repository is missing altogether
Is it possible to get P2 director to have them both present and enabled? What controls this behaviour?
|
|
|
Re: P2 director and update sites used for provisioning [message #1784027 is a reply to message #1783788] |
Wed, 21 March 2018 17:46 |
Eclipse User |
|
|
|
Those values are stored in the p2 profile settings, found in your installation under p2/org.eclipse.equinox.p2.engine/profileRegistry/<<PROFILE>>.profile/.data/.settings. There are two pref files, one for artifact repositories and the other for metadata repositories.
The p2 director doesn't seed these preferences from the provided repositories: I installed an IU from a local `file:`-based p2 repository and that location was not written out. Rather these values are seeded by p2 `addRepository()` touchpoints.
Any update sites added via the p2 UIs (like Install New Software) are added to these lists too.
If you're interested, you could submit a patch to the p2 director to add the repositories to the list. For example, with an argument like "-remember".
Brian.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02413 seconds