Skip to content

[MNG-4194] API to safely release of plugin realms #5961

Closed

Description

@jira-importer

Igor Fedorenko opened MNG-4194 and commented

This is a followup request for MNG-4041.

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.

Affects: 3.0-alpha-2

Issue Links:

  • MNG-4041 embedder returns stale maven project state

1 votes, 2 watchers

Activity

  1. jira-importer commented on Sep 3, 2009

    @jira-importer
    Author

    Benjamin Bentmann commented

    Could you provide some more details on the desired API, e.g. pseudo-code that illustrates its intended usage and the required methods?

  2. jira-importer commented on Mar 30, 2010

    @jira-importer
    Author

    Jason van Zyl commented

    Now working correctly in M2E.

  3. added
    enhancement
    priority:major
    on Jul 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:major

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions