Find the Sonatype Plexus cipher where a classic Plexus container runs

MSAL

The components of org.codehaus.plexus:plexus-sec-dispatcher 2.0 and org.codehaus.plexus:plexus-cipher 2.0 are made for Sisu. A classic Plexus container, such as the one of Maven 2, can't create them, as DefaultSecDispatcher has no constructor without arguments and the jar of the cipher has no Plexus components.xml. A module runs such a container when it resolves org.codehaus.plexus:plexus-container-default and not the Plexus support of Sisu. In a repository where such a module resolves org.sonatype.plexus:plexus-cipher or org.sonatype.plexus:plexus-sec-dispatcher, this marks where the repository declares or manages them.

org.openrewrite.codehaus.plexus.FindSonatypePlexusCipherInClassicPlexusContainer

Optional

invertMarkingBoolean

If true, marks every file of a repository where no module runs a classic Plexus container with the Sonatype artifacts instead, so that the migration can take this recipe as a precondition.

mod run . --recipe=org.openrewrite.codehaus.plexus.FindSonatypePlexusCipherInClassicPlexusContainer

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.