Class DefaultModelValidator
java.lang.Object
org.apache.maven.model.validation.DefaultModelValidator
- All Implemented Interfaces:
ModelValidator
- Author:
- Trygve Laugstøl
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvalidateDependencyVersion(ModelProblemCollector problems, org.apache.maven.model.Dependency d, String prefix) voidvalidateEffectiveModel(org.apache.maven.model.Model m, ModelBuildingRequest request, ModelProblemCollector problems) Checks the specified (effective) model for missing or invalid values.voidvalidateRawModel(org.apache.maven.model.Model m, ModelBuildingRequest request, ModelProblemCollector problems) Checks the specified (raw) model for missing or invalid values.
-
Field Details
-
BUILD_ALLOW_EXPRESSION_IN_EFFECTIVE_PROJECT_VERSION
- See Also:
-
-
Constructor Details
-
DefaultModelValidator
-
-
Method Details
-
validateRawModel
public void validateRawModel(org.apache.maven.model.Model m, ModelBuildingRequest request, ModelProblemCollector problems) Description copied from interface:ModelValidatorChecks 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:
validateRawModelin interfaceModelValidator- Parameters:
m- The model to validate, must not benull.request- The model building request that holds further settings, must not benull.problems- The container used to collect problems that were encountered, must not benull.
-
validateEffectiveModel
public void validateEffectiveModel(org.apache.maven.model.Model m, ModelBuildingRequest request, ModelProblemCollector problems) Description copied from interface:ModelValidatorChecks 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:
validateEffectiveModelin interfaceModelValidator- Parameters:
m- The model to validate, must not benull.request- The model building request that holds further settings, must not benull.problems- The container used to collect problems that were encountered, must not benull.
-
validateDependencyVersion
protected void validateDependencyVersion(ModelProblemCollector problems, org.apache.maven.model.Dependency d, String prefix) - Since:
- 3.2.4
-