Class DefaultModelValidator
java.lang.Object
org.apache.maven.model.validation.DefaultModelValidator
- All Implemented Interfaces:
- ModelValidator
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidvalidateDependencyVersion(ModelProblemCollector problems, Dependency d, String prefix) voidvalidateEffectiveModel(Model ma, ModelBuildingRequest request, ModelProblemCollector problems) Checks the specified (effective) model for missing or invalid values.voidvalidateExternalProfiles(List<Profile> activeExternalProfiles, Model ma, ModelBuildingRequest request, ModelProblemCollector problems) Checks the specified (raw) model for clashes with the passed active external profiles.voidvalidateFileModel(Model ma, ModelBuildingRequest request, ModelProblemCollector problems) Checks the specified file model for missing or invalid values.voidvalidateRawModel(Model ma, ModelBuildingRequest request, ModelProblemCollector problems) Checks the specified (raw) model for missing or invalid values.
- 
Field Details- 
VALID_MODEL_VERSIONS
 
- 
- 
Constructor Details- 
DefaultModelValidator
 
- 
- 
Method Details- 
validateFileModelpublic void validateFileModel(Model ma, ModelBuildingRequest request, ModelProblemCollector problems) Description copied from interface:ModelValidatorChecks 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:
- validateFileModelin interface- ModelValidator
- Parameters:
- ma- 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.
 
- 
validateRawModelpublic void validateRawModel(Model ma, ModelBuildingRequest request, ModelProblemCollector problems) Description copied from interface:ModelValidatorChecks 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:
- validateRawModelin interface- ModelValidator
- Parameters:
- ma- 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.
 
- 
validateEffectiveModelpublic void validateEffectiveModel(Model ma, 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 interface- ModelValidator
- Parameters:
- ma- 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.
 
- 
validateExternalProfilespublic void validateExternalProfiles(List<Profile> activeExternalProfiles, Model ma, ModelBuildingRequest request, ModelProblemCollector problems) Description copied from interface:ModelValidatorChecks the specified (raw) model for clashes with the passed active external profiles. The raw model is the file model + buildpom filter transformation and has not been subjected to inheritance, interpolation or profile/default injection.- Specified by:
- validateExternalProfilesin interface- ModelValidator
- Parameters:
- activeExternalProfiles- the active profiles coming from external sources (settings.xml), must not be- null
- ma- 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.
 
- 
validateDependencyVersionprotected void validateDependencyVersion(ModelProblemCollector problems, Dependency d, String prefix) - Since:
- 3.2.4
 
 
-