This is a followup request for
PluginManager and Plugin cache should allow safe release of plugin realms, that is, ability for embedding application, like Eclipse or Netbeans, to determine if any given plugin realm is currently being used and remove unused realms from PluginCache in a thread-safe manner.
I see at least two cases when it is not safe to release a plugin realm
- Regular plugin realm during mojo execution.
- Extensions plugin realm for as long as the referencing project(s) are in the reactor or otherwise known to the embedding application.