Class DefaultModelNormalizer
- java.lang.Object
-
- org.apache.maven.model.normalization.DefaultModelNormalizer
-
- All Implemented Interfaces:
ModelNormalizer
@Named @Singleton public class DefaultModelNormalizer extends java.lang.Object implements ModelNormalizer
Handles normalization of a model.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classDefaultModelNormalizer.DuplicateMergerDuplicateMerger
-
Field Summary
Fields Modifier and Type Field Description private DefaultModelNormalizer.DuplicateMergermerger
-
Constructor Summary
Constructors Constructor Description DefaultModelNormalizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinjectDefaultValues(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.private voidinjectDependencyDefaults(java.util.List<Dependency> dependencies)voidmergeDuplicates(Model model, ModelBuildingRequest request, ModelProblemCollector problems)Merges duplicate elements like multiple declarations of the same build plugin in the specified model.
-
-
-
Field Detail
-
merger
private DefaultModelNormalizer.DuplicateMerger merger
-
-
Method Detail
-
mergeDuplicates
public void mergeDuplicates(Model model, ModelBuildingRequest 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 void injectDefaultValues(Model model, ModelBuildingRequest 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.
-
injectDependencyDefaults
private void injectDependencyDefaults(java.util.List<Dependency> dependencies)
-
-