org.apache.maven.project
Class ModelUtils
java.lang.Object
org.apache.maven.project.ModelUtils
public final class ModelUtils
- extends Object
Method Summary |
static Activation |
cloneActivation(Activation src)
|
static ActivationFile |
cloneActivationFile(ActivationFile src)
|
static ActivationOS |
cloneActivationOs(ActivationOS src)
|
static ActivationProperty |
cloneActivationProperty(ActivationProperty src)
|
static Build |
cloneBuild(Build src)
|
static void |
cloneBuildBaseFields(BuildBase src,
BuildBase result)
|
static CiManagement |
cloneCiManagement(CiManagement src)
|
static Object |
cloneConfiguration(Object configuration)
|
static Contributor |
cloneContributor(Contributor src)
|
static Dependency |
cloneDependency(Dependency src)
|
static Exclusion |
cloneDependencyExclusion(Exclusion src)
|
static DependencyManagement |
cloneDependencyManagement(DependencyManagement src)
|
static DeploymentRepository |
cloneDeploymentRepository(DeploymentRepository src)
|
static Developer |
cloneDeveloper(Developer src)
|
static DistributionManagement |
cloneDistributionManagement(DistributionManagement src)
|
static Exclusion |
cloneExclusion(Exclusion src)
|
static Extension |
cloneExtension(Extension src)
|
static IssueManagement |
cloneIssueManagement(IssueManagement src)
|
static License |
cloneLicense(License src)
|
static List |
cloneListOfStrings(List src)
|
static MailingList |
cloneMailingList(MailingList src)
|
static Model |
cloneModel(Model src)
|
static Notifier |
cloneNotifier(Notifier src)
|
static Organization |
cloneOrganization(Organization src)
|
static Parent |
cloneParent(Parent src)
|
static Plugin |
clonePlugin(Plugin src)
|
static PluginExecution |
clonePluginExecution(PluginExecution src)
|
static PluginManagement |
clonePluginManagement(PluginManagement src)
|
static Prerequisites |
clonePrerequisites(Prerequisites src)
|
static Profile |
cloneProfile(Profile src)
|
static Properties |
cloneProperties(Properties src)
|
static Relocation |
cloneRelocation(Relocation src)
|
static Reporting |
cloneReporting(Reporting src)
|
static ReportPlugin |
cloneReportPlugin(ReportPlugin src)
|
static ReportSet |
cloneReportSet(ReportSet src)
|
static Repository |
cloneRepository(Repository src)
|
static RepositoryPolicy |
cloneRepositoryPolicy(RepositoryPolicy src)
|
static Resource |
cloneResource(Resource src)
|
static Scm |
cloneScm(Scm src)
|
static Site |
cloneSite(Site src)
|
static List |
mergeDependencyList(List child,
List parent)
|
static void |
mergeDuplicatePluginDefinitions(PluginContainer pluginContainer)
Given this plugin list:
A1 -> B -> C -> A2 -> D
Rearrange it to this:
A(A1 + A2) -> B -> C -> D
In cases of overlapping definitions, A1 is overridden by A2 |
static void |
mergeExtensionLists(Build childBuild,
Build parentBuild)
|
static void |
mergeFilterLists(List childFilters,
List parentFilters)
|
static void |
mergePluginDefinitions(Plugin child,
Plugin parent,
boolean handleAsInheritance)
|
static void |
mergePluginLists(PluginContainer child,
PluginContainer parent,
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 |
static void |
mergeReportPluginDefinitions(ReportPlugin child,
ReportPlugin parent,
boolean handleAsInheritance)
|
static void |
mergeReportPluginLists(Reporting child,
Reporting parent,
boolean handleAsInheritance)
Merge the list of reporting plugins from parent pom and child pom
TODO it's pretty much a copy of mergePluginLists(PluginContainer, PluginContainer, boolean) |
static List |
mergeRepositoryLists(List dominant,
List recessive)
|
static void |
mergeResourceLists(List childResources,
List parentResources)
|
static List |
orderAfterMerge(List merged,
List highPrioritySource,
List lowPrioritySource)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModelUtils
public ModelUtils()
mergeDuplicatePluginDefinitions
public static void mergeDuplicatePluginDefinitions(PluginContainer pluginContainer)
- Given this plugin list:
A1 -> B -> C -> A2 -> D
Rearrange it to this:
A(A1 + A2) -> B -> C -> D
In cases of overlapping definitions, A1 is overridden by A2
cloneReportSet
public static ReportSet cloneReportSet(ReportSet src)
cloneReportPlugin
public static ReportPlugin cloneReportPlugin(ReportPlugin src)
cloneProfile
public static Profile cloneProfile(Profile src)
cloneReporting
public static Reporting cloneReporting(Reporting src)
cloneActivation
public static Activation cloneActivation(Activation src)
cloneActivationProperty
public static ActivationProperty cloneActivationProperty(ActivationProperty src)
cloneActivationOs
public static ActivationOS cloneActivationOs(ActivationOS src)
cloneActivationFile
public static ActivationFile cloneActivationFile(ActivationFile src)
cloneRepository
public static Repository cloneRepository(Repository src)
cloneRepositoryPolicy
public static RepositoryPolicy cloneRepositoryPolicy(RepositoryPolicy src)
cloneMailingList
public static MailingList cloneMailingList(MailingList src)
mergePluginLists
public static void mergePluginLists(PluginContainer child,
PluginContainer parent,
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 orderAfterMerge(List merged,
List highPrioritySource,
List lowPrioritySource)
mergeReportPluginLists
public static void mergeReportPluginLists(Reporting child,
Reporting parent,
boolean handleAsInheritance)
- Merge the list of reporting plugins from parent pom and child pom
TODO it's pretty much a copy of
mergePluginLists(PluginContainer, PluginContainer, boolean)
- Parameters:
child
- parent
- handleAsInheritance
-
mergePluginDefinitions
public static void mergePluginDefinitions(Plugin child,
Plugin parent,
boolean handleAsInheritance)
mergeReportPluginDefinitions
public static void mergeReportPluginDefinitions(ReportPlugin child,
ReportPlugin parent,
boolean handleAsInheritance)
cloneModel
public static Model cloneModel(Model src)
cloneScm
public static Scm cloneScm(Scm src)
clonePrerequisites
public static Prerequisites clonePrerequisites(Prerequisites src)
cloneOrganization
public static Organization cloneOrganization(Organization src)
cloneLicense
public static License cloneLicense(License src)
cloneIssueManagement
public static IssueManagement cloneIssueManagement(IssueManagement src)
cloneDistributionManagement
public static DistributionManagement cloneDistributionManagement(DistributionManagement src)
cloneSite
public static Site cloneSite(Site src)
cloneDeploymentRepository
public static DeploymentRepository cloneDeploymentRepository(DeploymentRepository src)
cloneRelocation
public static Relocation cloneRelocation(Relocation src)
cloneDependencyManagement
public static DependencyManagement cloneDependencyManagement(DependencyManagement src)
cloneContributor
public static Contributor cloneContributor(Contributor src)
cloneDeveloper
public static Developer cloneDeveloper(Developer src)
cloneCiManagement
public static CiManagement cloneCiManagement(CiManagement src)
cloneNotifier
public static Notifier cloneNotifier(Notifier src)
cloneProperties
public static Properties cloneProperties(Properties src)
cloneBuild
public static Build cloneBuild(Build src)
cloneBuildBaseFields
public static void cloneBuildBaseFields(BuildBase src,
BuildBase result)
clonePluginManagement
public static PluginManagement clonePluginManagement(PluginManagement src)
cloneResource
public static Resource cloneResource(Resource src)
clonePlugin
public static Plugin clonePlugin(Plugin src)
clonePluginExecution
public static PluginExecution clonePluginExecution(PluginExecution src)
cloneConfiguration
public static Object cloneConfiguration(Object configuration)
cloneDependency
public static Dependency cloneDependency(Dependency src)
cloneExclusion
public static Exclusion cloneExclusion(Exclusion src)
cloneListOfStrings
public static List cloneListOfStrings(List src)
cloneExtension
public static Extension cloneExtension(Extension src)
cloneDependencyExclusion
public static Exclusion cloneDependencyExclusion(Exclusion src)
cloneParent
public static Parent cloneParent(Parent src)
mergeRepositoryLists
public static List mergeRepositoryLists(List dominant,
List recessive)
mergeExtensionLists
public static void mergeExtensionLists(Build childBuild,
Build parentBuild)
mergeResourceLists
public static void mergeResourceLists(List childResources,
List parentResources)
mergeFilterLists
public static void mergeFilterLists(List childFilters,
List parentFilters)
mergeDependencyList
public static List mergeDependencyList(List child,
List parent)
Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.