Class DefaultModelNormalizer
java.lang.Object
org.apache.maven.model.normalization.DefaultModelNormalizer
- All Implemented Interfaces:
ModelNormalizer
Handles normalization of a model.
- Author:
- Benjamin Bentmann
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
DuplicateMerger -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioninjectDefaultValues
(Model model, ModelBuildingRequest request, ModelProblemCollector problems) void
injectDefaultValues
(Model model, ModelBuildingRequest request, ModelProblemCollector problems) Sets default values in the specified model that for technical reasons cannot be set directly in the Modello definition.mergeDuplicates
(Model model, ModelBuildingRequest request, ModelProblemCollector problems) void
mergeDuplicates
(Model model, ModelBuildingRequest request, ModelProblemCollector problems) Merges duplicate elements like multiple declarations of the same build plugin in the specified model.
-
Constructor Details
-
DefaultModelNormalizer
public DefaultModelNormalizer()
-
-
Method Details
-
mergeDuplicates
public void mergeDuplicates(Model model, ModelBuildingRequest request, ModelProblemCollector problems) Description copied from interface:ModelNormalizer
Merges duplicate elements like multiple declarations of the same build plugin in the specified model.- Specified by:
mergeDuplicates
in interfaceModelNormalizer
- Parameters:
model
- The model whose duplicate elements should be merged, 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
.
-
injectDefaultValues
public void injectDefaultValues(Model model, ModelBuildingRequest request, ModelProblemCollector problems) Description copied from interface:ModelNormalizer
Sets default values in the specified model that for technical reasons cannot be set directly in the Modello definition.- Specified by:
injectDefaultValues
in interfaceModelNormalizer
- Parameters:
model
- The model in which to set the default values, 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
.
-
mergeDuplicates
public Model mergeDuplicates(Model model, ModelBuildingRequest request, ModelProblemCollector problems) - Specified by:
mergeDuplicates
in interfaceModelNormalizer
-
injectDefaultValues
public Model injectDefaultValues(Model model, ModelBuildingRequest request, ModelProblemCollector problems) - Specified by:
injectDefaultValues
in interfaceModelNormalizer
-