class DeprecatedPluginValidator extends AbstractMavenPluginDescriptorSourcedParametersValidator {

    private final MessageBuilderFactory messageBuilderFactory;

    @Inject
    DeprecatedPluginValidator(
            PluginValidationManager pluginValidationManager, MessageBuilderFactory messageBuilderFactory) {
        super(pluginValidationManager);
        this.messageBuilderFactory = messageBuilderFactory;
    }

    @Override
    protected String getParameterLogReason(Parameter parameter) {
        return "is deprecated: " + parameter.getDeprecated();
    }

    @Override
    protected void doValidate(
            MavenSession mavenSession,
            MojoDescriptor mojoDescriptor,
            Class<?> mojoClass,
            PlexusConfiguration pomConfiguration,
            ExpressionEvaluator expressionEvaluator) {<FILL_FUNCTION_BODY>}

    private void checkParameter(
            MavenSession mavenSession,
            MojoDescriptor mojoDescriptor,
            Class<?> mojoClass,
            Parameter parameter,
            PlexusConfiguration pomConfiguration,
            ExpressionEvaluator expressionEvaluator) {
        PlexusConfiguration config = pomConfiguration.getChild(parameter.getName(), false);

        if (isValueSet(config, expressionEvaluator)) {
            pluginValidationManager.reportPluginMojoValidationIssue(
                    PluginValidationManager.IssueLocality.INTERNAL,
                    mavenSession,
                    mojoDescriptor,
                    mojoClass,
                    formatParameter(parameter));
        }
    }

    private String logDeprecatedMojo(MojoDescriptor mojoDescriptor) {
        return messageBuilderFactory
                .builder()
                .warning("Goal '")
                .warning(mojoDescriptor.getGoal())
                .warning("' is deprecated: ")
                .warning(mojoDescriptor.getDeprecated())
                .toString();
    }
}

        if (mojoDescriptor.getDeprecated() != null) {
            pluginValidationManager.reportPluginMojoValidationIssue(
                    PluginValidationManager.IssueLocality.INTERNAL,
                    mavenSession,
                    mojoDescriptor,
                    mojoClass,
                    logDeprecatedMojo(mojoDescriptor));
        }

        if (mojoDescriptor.getParameters() != null) {
            mojoDescriptor.getParameters().stream()
                    .filter(parameter -> parameter.getDeprecated() != null)
                    .filter(Parameter::isEditable)
                    .forEach(parameter -> checkParameter(
                            mavenSession, mojoDescriptor, mojoClass, parameter, pomConfiguration, expressionEvaluator));
        }
    
<methods><variables>private static final List<java.lang.String> IGNORED_PROPERTY_PREFIX,private static final List<java.lang.String> IGNORED_PROPERTY_VALUES