Basilevs
Basilevs

Reputation: 23929

Prevent caching of Eclipse target definition

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?

Upvotes: 4

Views: 1445

Answers (2)

Basilevs
Basilevs

Reputation: 23929

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.

Upvotes: 0

oberlies
oberlies

Reputation: 11723

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.

Upvotes: 1

Related Questions