How to update p2 cache when using version ranges in .target files? #1513
Replies: 2 comments 7 replies
-
It might just be a p2 problem with having a cached loaded repository in memory. Not that I'm suggesting this as the solution, but does restart the IDE help? I got so annoyed that sometimes cached files don't seem to update that I added this: With Oomph's targlet and p2 tasks we actively clear in-memory cached p2 repositories. Under the covers this is supported by org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.flushCache() but I don't see anything in the SDK calling that. |
Beta Was this translation helpful? Give feedback.
-
Only helps if the target files content changed (e.g. the XML) but should not be needed most of the time
This is desired as Update mean set the version to the latest from the repository (what did not help with version ranges)
Update is the same as above with the context menu
This is the actual button that should do the trick, if you have any (reproducible) issues with that please report them so it could be fixed. |
Beta Was this translation helpful? Give feedback.
-
Hi,
we tried using the new version range feature in the .target files and they really very well for us. Thanks for adding this feature!
One thing we were not able to resolve is how to trigger an update for p2/the target editor to fetch new repository information for such a location from the server and set that as new target definition, eg. to consume newer SNAPSHOT builds in the IDE.
This is what we treid so far:
The only thing that works so far is a Eclipse restart, after that the new SNAPSHOT versions appear in the content tab.
Is there a way to trigger re-resolution of artifacts from a remote server?
Thanks for any hints.
Bye Peter
Beta Was this translation helpful? Give feedback.
All reactions