Clearing your p2 cache
There are only two hard things in Computer Science: cache invalidation, naming things and off by one errors. (reference)
I appears that P2 (em, p2) suffers from both of these things, but today I’m going to focus on the first one, caching problems. No matter what we do regarding caching repositories, it seems that we get it wrong. Some people argue that we don’t cache aggressively enough while others think that the out-of-date caches, even for a few minutes, is not acceptable. While I don’t want to start a political argument on a Friday, I did want to provide a technical tip to help.
If you find that p2 is caching your repositories too aggressively (or it seems to have remembered a bad repository which as since been fixed), you can instruct p2 to reload the cache. Choose Preferences -> Install / Update -> Available Software Sites. Select the site you want to reload, and press the Reload button.
Thanks Lars for reminding me to blog about this.
For more Eclipse Tips and Tricks (and the annual Top 10 List), why not follow me on twitter: