Class DefaultModelNormalizer
java.lang.Object
org.apache.maven.internal.impl.model.DefaultModelNormalizer
- All Implemented Interfaces:
ModelNormalizer
Handles normalization of a model.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classDuplicateMerger -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninjectDefaultValues(Model model, ModelBuilderRequest request, ModelProblemCollector problems) Sets default values in the specified model that for technical reasons cannot be set directly in the Modello definition.private Dependencyprivate <T> List<T> injectList(List<T> list, Function<T, T> modifer) Returns a list suited for the builders, i.e.private PluginmergeDuplicates(Model model, ModelBuilderRequest request, ModelProblemCollector problems) Merges duplicate elements like multiple declarations of the same build plugin in the specified model.
-
Field Details
-
merger
-
-
Constructor Details
-
DefaultModelNormalizer
public DefaultModelNormalizer()
-
-
Method Details
-
mergeDuplicates
public Model mergeDuplicates(Model model, ModelBuilderRequest request, ModelProblemCollector problems) Description copied from interface:ModelNormalizerMerges duplicate elements like multiple declarations of the same build plugin in the specified model.- Specified by:
mergeDuplicatesin 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 Model injectDefaultValues(Model model, ModelBuilderRequest request, ModelProblemCollector problems) Description copied from interface:ModelNormalizerSets default values in the specified model that for technical reasons cannot be set directly in the Modello definition.- Specified by:
injectDefaultValuesin 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.
-
injectPlugin
-
injectDependency
-
injectList
Returns a list suited for the builders, i.e. null if not modified
-