Class DefaultModelNormalizer

java.lang.Object
org.apache.maven.impl.model.DefaultModelNormalizer
All Implemented Interfaces:
ModelNormalizer

@Named @Singleton public class DefaultModelNormalizer extends Object implements ModelNormalizer
Handles normalization of a model.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static class 
    DuplicateMerger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.maven.api.model.Model
    injectDefaultValues(org.apache.maven.api.model.Model model, org.apache.maven.api.services.ModelBuilderRequest request, org.apache.maven.api.services.ModelProblemCollector problems)
    Sets default values in the specified model that for technical reasons cannot be set directly in the Modello definition.
    org.apache.maven.api.model.Model
    mergeDuplicates(org.apache.maven.api.model.Model model, org.apache.maven.api.services.ModelBuilderRequest request, org.apache.maven.api.services.ModelProblemCollector problems)
    Merges duplicate elements like multiple declarations of the same build plugin in the specified model.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultModelNormalizer

      public DefaultModelNormalizer()
  • Method Details

    • mergeDuplicates

      public org.apache.maven.api.model.Model mergeDuplicates(org.apache.maven.api.model.Model model, org.apache.maven.api.services.ModelBuilderRequest request, org.apache.maven.api.services.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 interface ModelNormalizer
      Parameters:
      model - The model whose duplicate elements should be merged, must not be null.
      request - The model building request that holds further settings, must not be null.
      problems - The container used to collect problems that were encountered, must not be null.
    • injectDefaultValues

      public org.apache.maven.api.model.Model injectDefaultValues(org.apache.maven.api.model.Model model, org.apache.maven.api.services.ModelBuilderRequest request, org.apache.maven.api.services.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 interface ModelNormalizer
      Parameters:
      model - The model in which to set the default values, must not be null.
      request - The model building request that holds further settings, must not be null.
      problems - The container used to collect problems that were encountered, must not be null.