Eclipse p2 director application without updates

2019-04-15 15:57发布

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?

标签: eclipse p2
1条回答
在下西门庆
2楼-- · 2019-04-15 16:13

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.

查看更多
登录 后发表回答