Prevent caching of Eclipse target definition

試著忘記壹切 提交于 2019-12-22 08:47:13

问题


I'm using a target definition that references a P2 update site.

Update site was updated recently with a plugin that has same version and qualifier as previous version, but different content.

I've deleted .metadata/.plugins/org.eclipse.pde.core and tried resolving and applying target definition again. Strangely, target definition recreates previous version of plugin in .metadata.plugins\org.eclipse.pde.core.bundle_pool (I'm checking its content and behaviour)

Where could the content be cached and how do I flush this cache?

  • Version: Kepler Service Release 2
  • Build id: 20140224-0627

回答1:


Update site was updated recently with a plugin that has same version and qualifier as previous version, but different content.

Well in this case you have a problem.

This kind of changes violates the most basic assumptions of p2, and hence you cannot expect anything to work correctly any more.




回答2:


P2 stores "global" cache outside workspace or Eclipse installation in user's home directory: $HOME/.p2/pool Once that is wiped problem is solved.

Unfortunately, this folder is used by all Eclipse instances installed with Oomph (Eclipse Installer), and its removal will make them unusable.

Note, that removal of some plugins from that folder will corrupt index integrity and will also make all of your Eclipse installations unusable.



来源:https://stackoverflow.com/questions/26860664/prevent-caching-of-eclipse-target-definition

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