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

ComponentLookupException on lookup of SettingsDecrypter from a Maven extension or plugin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 3.0.4
    • None
    • Class Loading
    • None

    Description

      Problem:

      Got a ComponentLookupException when trying to lookup org.apache.maven.settings.crypto.SettingsDecrypter from a Maven extension or plugin. Note: The problem only occurs when the extension has the plexus-sec-dispatcher.jar on its own class realm (because of the self-first strategy of the class realms).

      Cause:

      The component org.apache.maven.settings.crypto.DefaultSettingsDecrypter requires an instance of org.sonatype.plexus.components.sec.dispatcher.SecDispatcher, but org.sonatype.plexus.components.** is not part of the "Maven API" and cannot be reached via the maven.api class realm.

      See attached test project for further details.

      Attachments

        1. settings-decrypter-test.zip
          4 kB
          Bernd Mathiske

        Activity

          People

            Unassigned Unassigned
            bernd Bernd Mathiske
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: