Class DefaultModelValidator
- java.lang.Object
-
- org.apache.maven.model.validation.DefaultModelValidator
-
- All Implemented Interfaces:
ModelValidator
@Named @Singleton public class DefaultModelValidator extends java.lang.Object implements ModelValidator
- Author:
- Trygve Laugstøl
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBUILD_ALLOW_EXPRESSION_IN_EFFECTIVE_PROJECT_VERSION
-
Constructor Summary
Constructors Constructor Description DefaultModelValidator(ModelVersionProcessor versionProcessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidvalidateDependencyVersion(ModelProblemCollector problems, org.apache.maven.model.Dependency d, java.lang.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 Detail
-
BUILD_ALLOW_EXPRESSION_IN_EFFECTIVE_PROJECT_VERSION
public static final java.lang.String BUILD_ALLOW_EXPRESSION_IN_EFFECTIVE_PROJECT_VERSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DefaultModelValidator
@Inject public DefaultModelValidator(ModelVersionProcessor versionProcessor)
-
-
Method Detail
-
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, java.lang.String prefix)
- Since:
- 3.2.4
-
-