Package org.apache.maven.project
Class ModelUtils
java.lang.Object
org.apache.maven.project.ModelUtils
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ModelUtils.ModelPartCloner
private static final ModelUtils.ModelPartCloner
private static final ModelUtils.ModelPartCloner
private static final ModelUtils.ModelPartCloner
private static final ModelUtils.ModelPartCloner
private static final ModelUtils.ModelPartCloner
private static final ModelUtils.ModelPartCloner
private static final ModelUtils.ModelPartCloner
private static final ModelUtils.ModelPartCloner
private static final ModelUtils.ModelPartCloner
private static final ModelUtils.ModelPartCloner
private static final ModelUtils.ModelPartCloner
private static final ModelUtils.ModelPartCloner
private static final ModelUtils.ModelPartCloner
private static final ModelUtils.ModelPartCloner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Activation
static ActivationFile
static ActivationOS
static ActivationProperty
static Build
cloneBuild
(Build src) static void
cloneBuildBaseFields
(BuildBase src, BuildBase result) static CiManagement
static Object
cloneConfiguration
(Object configuration) static Contributor
private static void
cloneContributorFields
(Contributor src, Contributor result) static Dependency
static Exclusion
static DependencyManagement
static DeploymentRepository
static Developer
cloneDeveloper
(Developer src) static DistributionManagement
static Exclusion
cloneExclusion
(Exclusion src) static Extension
cloneExtension
(Extension src) static IssueManagement
static License
cloneLicense
(License src) private static List
cloneList
(List src, ModelUtils.ModelPartCloner cloner) static List
cloneListOfStrings
(List src) static MailingList
static Model
cloneModel
(Model src) private static void
cloneModelBaseFields
(ModelBase src, ModelBase result) static Notifier
cloneNotifier
(Notifier src) static Organization
static Parent
cloneParent
(Parent src) static Plugin
clonePlugin
(Plugin src) static PluginExecution
static PluginManagement
static Prerequisites
static Profile
cloneProfile
(Profile src) static Properties
static Relocation
static Reporting
cloneReporting
(Reporting src) static ReportPlugin
static ReportSet
cloneReportSet
(ReportSet src) static Repository
private static void
cloneRepositoryBaseFields
(RepositoryBase src, RepositoryBase result) static RepositoryPolicy
static Resource
cloneResource
(Resource src) static Scm
static Site
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 A2static void
mergeExtensionLists
(Build childBuild, Build parentBuild) static void
mergeFilterLists
(List childFilters, List parentFilters) static void
mergePluginDefinitions
(Plugin child, Plugin parent, boolean handleAsInheritance) private static void
mergePluginExecutionDefinitions
(PluginExecution child, PluginExecution parent) 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 -> Fstatic 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 ofmergePluginLists(PluginContainer, PluginContainer, boolean)
private static void
mergeReportSetDefinitions
(ReportSet child, ReportSet parent) static List
mergeRepositoryLists
(List dominant, List recessive) static void
mergeResourceLists
(List childResources, List parentResources) static List
orderAfterMerge
(List merged, List highPrioritySource, List lowPrioritySource)
-
Field Details
-
DEPENDENCY_CLONER
-
PLUGIN_CLONER
-
EXTENSION_CLONER
-
RESOURCE_CLONER
-
NOTIFIER_CLONER
-
CONTRIBUTOR_CLONER
-
DEVELOPER_CLONER
-
LICENSE_CLONER
-
MAILING_LIST_CLONER
-
REPOSITORY_CLONER
-
PROFILE_CLONER
-
REPORT_PLUGIN_CLONER
-
REPORT_SET_CLONER
-
DEPENDENCY_EXCLUSION_CLONER
-
PLUGIN_EXECUTION_CLONER
-
-
Constructor Details
-
ModelUtils
public ModelUtils()
-
-
Method Details
-
mergeDuplicatePluginDefinitions
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
-
cloneReportPlugin
-
cloneProfile
-
cloneModelBaseFields
-
cloneReporting
-
cloneActivation
-
cloneActivationProperty
-
cloneActivationOs
-
cloneActivationFile
-
cloneRepository
-
cloneRepositoryPolicy
-
cloneMailingList
-
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
-
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 ofmergePluginLists(PluginContainer, PluginContainer, boolean)
- Parameters:
child
-parent
-handleAsInheritance
-
-
mergePluginDefinitions
-
mergeReportPluginDefinitions
public static void mergeReportPluginDefinitions(ReportPlugin child, ReportPlugin parent, boolean handleAsInheritance) -
mergePluginExecutionDefinitions
-
mergeReportSetDefinitions
-
cloneModel
-
cloneScm
-
clonePrerequisites
-
cloneOrganization
-
cloneLicense
-
cloneIssueManagement
-
cloneDistributionManagement
-
cloneSite
-
cloneDeploymentRepository
-
cloneRepositoryBaseFields
-
cloneRelocation
-
cloneDependencyManagement
-
cloneList
-
cloneContributor
-
cloneDeveloper
-
cloneContributorFields
-
cloneCiManagement
-
cloneNotifier
-
cloneProperties
-
cloneBuild
-
cloneBuildBaseFields
-
clonePluginManagement
-
cloneResource
-
clonePlugin
-
clonePluginExecution
-
cloneConfiguration
-
cloneDependency
-
cloneExclusion
-
cloneListOfStrings
-
cloneExtension
-
cloneDependencyExclusion
-
cloneParent
-
mergeRepositoryLists
-
mergeExtensionLists
-
mergeResourceLists
-
mergeFilterLists
-
mergeDependencyList
-