Class ModelUtils

java.lang.Object
org.apache.maven.plugin.resources.remote.ModelUtils

public final class ModelUtils extends Object
HELPER CLASS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    mergeFilterLists(List<String> childFilters, List<String> parentFilters)
     
    static void
    mergePluginDefinitions(org.apache.maven.model.Plugin child, org.apache.maven.model.Plugin parent, boolean handleAsInheritance)
     
    static void
    mergePluginLists(org.apache.maven.model.PluginContainer childContainer, org.apache.maven.model.PluginContainer parentContainer, boolean handleAsInheritance)
    This should be the resulting ordering of plugins after merging:
    static List<org.apache.maven.model.Repository>
    mergeRepositoryLists(List<org.apache.maven.model.Repository> dominant, List<org.apache.maven.model.Repository> recessive)
     
    static List<org.apache.maven.model.Plugin>
    orderAfterMerge(List<org.apache.maven.model.Plugin> merged, List<org.apache.maven.model.Plugin> highPrioritySource, List<org.apache.maven.model.Plugin> lowPrioritySource)
     

    Methods inherited from class java.lang.Object

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

    • ModelUtils

      public ModelUtils()
  • Method Details

    • mergePluginLists

      public static void mergePluginLists(org.apache.maven.model.PluginContainer childContainer, org.apache.maven.model.PluginContainer parentContainer, boolean handleAsInheritance)
      This should be the resulting ordering of plugins after merging:

      Given:

       parent: X -> A -> B -> D -> E
       child: Y -> A -> C -> D -> F
       
      Result:
       X -> Y -> A -> B -> C -> D -> E -> F
       
    • orderAfterMerge

      public static List<org.apache.maven.model.Plugin> orderAfterMerge(List<org.apache.maven.model.Plugin> merged, List<org.apache.maven.model.Plugin> highPrioritySource, List<org.apache.maven.model.Plugin> lowPrioritySource)
    • mergePluginDefinitions

      public static void mergePluginDefinitions(org.apache.maven.model.Plugin child, org.apache.maven.model.Plugin parent, boolean handleAsInheritance)
    • mergeRepositoryLists

      public static List<org.apache.maven.model.Repository> mergeRepositoryLists(List<org.apache.maven.model.Repository> dominant, List<org.apache.maven.model.Repository> recessive)
    • mergeFilterLists

      public static void mergeFilterLists(List<String> childFilters, List<String> parentFilters)