I'm installing artefacts through the p2 director application from a command line and all of their repositories will get added to the Software Updates. Is there a way not the get the repositories added, or remove/disable them afterwards?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
The p2 director stores the locations of the repositories in the two files
- org.eclipse.equinox.p2.artifact.repository.prefs
- org.eclipse.equinox.p2.metadata.repository.prefs
in each of the following two directories:
p2/org.eclipse.equinox.p2.engine/.settings
andp2/org.eclipse.equinox.p2.engine/profileRegistry/<profileName>.profile/.data/.settings
Restoring these files might do the trick.
Note, adding the repositories (alias software/update sites) is not a side-effect of using the p2 director, but explicit specified via the touchpoint action addRepository
in the metadata repository (content.xml
/content.jar
) as part of the installed feature.