class PlexusContainerDefaultDependenciesValidator extends AbstractMavenPluginDependenciesValidator {

    @Inject
    PlexusContainerDefaultDependenciesValidator(PluginValidationManager pluginValidationManager) {
        super(pluginValidationManager);
    }

    protected void doValidate(
            RepositorySystemSession session,
            Artifact pluginArtifact,
            ArtifactDescriptorResult artifactDescriptorResult) {<FILL_FUNCTION_BODY>}
}

        boolean pcdPresent = artifactDescriptorResult.getDependencies().stream()
                .filter(d -> "org.codehaus.plexus".equals(d.getArtifact().getGroupId()))
                .anyMatch(d -> "plexus-container-default".equals(d.getArtifact().getArtifactId()));

        if (pcdPresent) {
            pluginValidationManager.reportPluginValidationIssue(
                    PluginValidationManager.IssueLocality.EXTERNAL,
                    session,
                    pluginArtifact,
                    "Plugin depends on plexus-container-default, which is EOL");
        }
    
<methods>public void validate(RepositorySystemSession, Artifact, ArtifactDescriptorResult) <variables>protected final non-sealed org.apache.maven.plugin.PluginValidationManager pluginValidationManager