Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6619

Core extensions should not be in plexus.core classloader

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None

      Description

      The core extensions classloader is set up in MavenCli.

      However, this line also loads them into the plexus.core classloader, which is really just supposed to contain the Maven core jars.

      This can lead to problems when event spies are added to `lib/ext`. They are instantiated and get events when resolving other extensions during the `loadCoreExtensions` method, even though they have not yet been initialized.

      I assume that the line in m2.conf is just outdated and superseded by `loadCoreExtensions` and should thus be removed to avoid non-initialized event spies being called while loading extensions.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              oehme Stefan Oehme
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: