Package org.apache.maven.impl.model
Class DefaultModelValidator
java.lang.Object
org.apache.maven.impl.model.DefaultModelValidator
- All Implemented Interfaces:
ModelValidator
-
Field Summary
FieldsFields inherited from interface org.apache.maven.api.services.model.ModelValidator
VALIDATION_LEVEL_MAVEN_2_0, VALIDATION_LEVEL_MAVEN_3_0, VALIDATION_LEVEL_MAVEN_3_1, VALIDATION_LEVEL_MAVEN_4_0, VALIDATION_LEVEL_MINIMAL, VALIDATION_LEVEL_STRICT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvalidateDependencyVersion(org.apache.maven.api.services.ModelProblemCollector problems, org.apache.maven.api.model.Dependency d, String prefix) voidvalidateEffectiveModel(org.apache.maven.api.Session s, org.apache.maven.api.model.Model m, int validationLevel, org.apache.maven.api.services.ModelProblemCollector problems) Checks the specified (effective) model for missing or invalid values.voidvalidateFileModel(org.apache.maven.api.Session s, org.apache.maven.api.model.Model m, int validationLevel, org.apache.maven.api.services.ModelProblemCollector problems) Checks the specified file model for missing or invalid values.voidvalidateRawModel(org.apache.maven.api.Session s, org.apache.maven.api.model.Model m, int validationLevel, org.apache.maven.api.services.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
@Inject public DefaultModelValidator()
-
-
Method Details
-
validateFileModel
public void validateFileModel(org.apache.maven.api.Session s, org.apache.maven.api.model.Model m, int validationLevel, org.apache.maven.api.services.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 interfaceModelValidator- Parameters:
m- The model to validate, must not benull.validationLevel- The validation level.problems- The container used to collect problems that were encountered, must not benull.
-
validateRawModel
public void validateRawModel(org.apache.maven.api.Session s, org.apache.maven.api.model.Model m, int validationLevel, org.apache.maven.api.services.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 interfaceModelValidator- Parameters:
m- The model to validate, must not benull.validationLevel- The validation level.problems- The container used to collect problems that were encountered, must not benull.
-
validateEffectiveModel
public void validateEffectiveModel(org.apache.maven.api.Session s, org.apache.maven.api.model.Model m, int validationLevel, org.apache.maven.api.services.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.validationLevel- The validation level.problems- The container used to collect problems that were encountered, must not benull.
-
validateDependencyVersion
protected void validateDependencyVersion(org.apache.maven.api.services.ModelProblemCollector problems, org.apache.maven.api.model.Dependency d, String prefix) - Since:
- 3.2.4
-