Class DefaultModelValidator

java.lang.Object
org.apache.maven.model.validation.DefaultModelValidator
All Implemented Interfaces:
ModelValidator

@Named @Singleton public class DefaultModelValidator extends Object implements ModelValidator
Author:
Trygve Laugstøl
  • Constructor Details

  • Method Details

    • validateRawModel

      public void validateRawModel(Model m, ModelBuildingRequest request, ModelProblemCollector problems)
      Description copied from interface: ModelValidator
      Checks the specified (raw) model for missing or invalid values. The raw model is directly created from the POM file and has not been subjected to inheritance, interpolation or profile/default injection.
      Specified by:
      validateRawModel in interface ModelValidator
      Parameters:
      m - The model to validate, must not be null.
      request - The model building request that holds further settings, must not be null.
      problems - The container used to collect problems that were encountered, must not be null.
    • validateEffectiveModel

      public void validateEffectiveModel(Model m, ModelBuildingRequest request, ModelProblemCollector problems)
      Description copied from interface: ModelValidator
      Checks the specified (effective) model for missing or invalid values. The effective model is fully assembled and has undergone inheritance, interpolation and other model operations.
      Specified by:
      validateEffectiveModel in interface ModelValidator
      Parameters:
      m - The model to validate, must not be null.
      request - The model building request that holds further settings, must not be null.
      problems - The container used to collect problems that were encountered, must not be null.
    • validateDependencyVersion

      protected void validateDependencyVersion(ModelProblemCollector problems, Dependency d, String prefix)
      Since:
      3.2.4