Class DefaultSettingsValidator

java.lang.Object
org.apache.maven.settings.validation.DefaultSettingsValidator
All Implemented Interfaces:
SettingsValidator

@Named @Singleton public class DefaultSettingsValidator extends Object implements SettingsValidator
  • Constructor Details

    • DefaultSettingsValidator

      @Inject public DefaultSettingsValidator(SettingsBuilder settingsBuilder)
  • Method Details

    • validate

      public void validate(Settings settings, SettingsProblemCollector problems)
      Description copied from interface: SettingsValidator
      Validate the specified settings.
      Specified by:
      validate in interface SettingsValidator
      Parameters:
      settings - The settings to validate, must not be null.
      problems - The container used to collect problems that were encountered, must not be null.
    • validate

      public void validate(Settings settings, boolean isProjectSettings, SettingsProblemCollector problems)
      Description copied from interface: SettingsValidator
      Validate the specified settings.
      Specified by:
      validate in interface SettingsValidator
      Parameters:
      settings - The settings to validate, must not be null.
      isProjectSettings - Boolean indicating if the validation is for project settings or user / global settings.
      problems - The container used to collect problems that were encountered, must not be null.