Eclipse p2 director application without updates

江枫思渺然 提交于 2019-12-22 01:14:44

问题


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 and
  • p2/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.



来源:https://stackoverflow.com/questions/48154594/eclipse-p2-director-application-without-updates

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!