Class DefaultModelValidator

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

@Named @Singleton public class DefaultModelValidator extends Object implements ModelValidator
  • Field Details

    • BUILD_ALLOW_EXPRESSION_IN_EFFECTIVE_PROJECT_VERSION

      public static final String BUILD_ALLOW_EXPRESSION_IN_EFFECTIVE_PROJECT_VERSION
      See Also:
    • VALID_MODEL_VERSIONS

      public static final List<String> VALID_MODEL_VERSIONS
  • Constructor Details

    • DefaultModelValidator

      @Inject public DefaultModelValidator()
  • Method Details

    • validateFileModel

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

      public void validateRawModel(Model m, int validationLevel, ModelProblemCollector problems)
      Description copied from interface: ModelValidator
      Checks the specified (raw) model for missing or invalid values. The raw model is the file model + buildpom filter transformation 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.
      validationLevel - The validation level.
      problems - The container used to collect problems that were encountered, must not be null.
    • validateEffectiveModel

      public void validateEffectiveModel(Model m, int validationLevel, 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.
      validationLevel - The validation level.
      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