Class DefaultModelValidator
java.lang.Object
org.apache.maven.model.validation.DefaultModelValidator
- All Implemented Interfaces:
ModelValidator
@Named
@Singleton
@Deprecated(since="4.0.0")
public class DefaultModelValidator
extends Object
implements ModelValidator
Deprecated.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
validateDependencyVersion
(ModelProblemCollector problems, Dependency d, String prefix) Deprecated.void
validateEffectiveModel
(Model ma, ModelBuildingRequest request, ModelProblemCollector problems) Deprecated.Checks the specified (effective) model for missing or invalid values.void
validateExternalProfiles
(List<Profile> activeExternalProfiles, Model ma, ModelBuildingRequest request, ModelProblemCollector problems) Deprecated.Checks the specified (raw) model for clashes with the passed active external profiles.void
validateFileModel
(Model ma, ModelBuildingRequest request, ModelProblemCollector problems) Deprecated.Checks the specified file model for missing or invalid values.void
validateRawModel
(Model ma, ModelBuildingRequest request, ModelProblemCollector problems) Deprecated.Checks the specified (raw) model for missing or invalid values.
-
Field Details
-
BUILD_ALLOW_EXPRESSION_IN_EFFECTIVE_PROJECT_VERSION
Deprecated.- See Also:
-
VALID_MODEL_VERSIONS
Deprecated.
-
-
Constructor Details
-
DefaultModelValidator
Deprecated.
-
-
Method Details
-
validateFileModel
public void validateFileModel(Model ma, ModelBuildingRequest request, ModelProblemCollector problems) Deprecated.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 interfaceModelValidator
- Parameters:
ma
- 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
.
-
validateRawModel
public void validateRawModel(Model ma, ModelBuildingRequest request, ModelProblemCollector problems) Deprecated.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 interfaceModelValidator
- Parameters:
ma
- 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(Model ma, ModelBuildingRequest request, ModelProblemCollector problems) Deprecated.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 interfaceModelValidator
- Parameters:
ma
- 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
.
-
validateExternalProfiles
public void validateExternalProfiles(List<Profile> activeExternalProfiles, Model ma, ModelBuildingRequest request, ModelProblemCollector problems) Deprecated.Description copied from interface:ModelValidator
Checks 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:
validateExternalProfiles
in interfaceModelValidator
- Parameters:
activeExternalProfiles
- the active profiles coming from external sources (settings.xml), must not benull
ma
- 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, Dependency d, String prefix) Deprecated.- Since:
- 3.2.4
-
ModelBuilder
instead