public final class ModelUtils extends Object
Constructor and Description |
---|
ModelUtils() |
Modifier and Type | Method and 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) |
public static void mergePluginLists(org.apache.maven.model.PluginContainer childContainer, org.apache.maven.model.PluginContainer parentContainer, boolean handleAsInheritance)
Given:
parent: X -> A -> B -> D -> E child: Y -> A -> C -> D -> FResult:
X -> Y -> A -> B -> C -> D -> E -> F
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)
public static void mergePluginDefinitions(org.apache.maven.model.Plugin child, org.apache.maven.model.Plugin parent, boolean handleAsInheritance)
public static List<org.apache.maven.model.Repository> mergeRepositoryLists(List<org.apache.maven.model.Repository> dominant, List<org.apache.maven.model.Repository> recessive)
Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.