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

Core extensions should not be in plexus.core classloader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Core
    • 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

            Unassigned Unassigned
            oehme Stefan Oehme
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: