Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Incomplete
-
3.0.4
-
None
-
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.