Package org.apache.maven.model.merge
Class MavenModelMerger
java.lang.Object
org.apache.maven.model.merge.ModelMerger
org.apache.maven.model.merge.MavenModelMerger
- Direct Known Subclasses:
DefaultDependencyManagementInjector.ManagementModelMerger
,DefaultInheritanceAssembler.InheritanceModelMerger
,DefaultLifecycleBindingsInjector.LifecycleBindingsMerger
,DefaultModelNormalizer.DuplicateMerger
,DefaultPluginManagementInjector.ManagementModelMerger
,DefaultProfileInjector.ProfileModelMerger
The domain-specific model merger for the Maven POM, overriding generic code from parent class when necessary with
more adapted algorithms.
- Author:
- Benjamin Bentmann
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
extrapolateChildUrl
(String parentUrl, boolean appendPath, Map<Object, Object> context) protected Object
getDependencyKey
(Dependency dependency) protected Object
getExclusionKey
(Exclusion exclusion) protected Object
getExtensionKey
(Extension extension) protected Object
getPluginExecutionKey
(PluginExecution pluginExecution) protected Object
getPluginKey
(Plugin plugin) protected Object
getReportPluginKey
(ReportPlugin reportPlugin) protected Object
getReportSetKey
(ReportSet reportSet) protected Object
getRepositoryBaseKey
(RepositoryBase repositoryBase) protected boolean
isSiteEmpty
(Site site) protected void
mergeBuildBase_Filters
(BuildBase target, BuildBase source, boolean sourceDominant, Map<Object, Object> context) protected void
mergeBuildBase_Resources
(BuildBase target, BuildBase source, boolean sourceDominant, Map<Object, Object> context) protected void
mergeBuildBase_TestResources
(BuildBase target, BuildBase source, boolean sourceDominant, Map<Object, Object> context) protected void
mergeDistributionManagement_Repository
(DistributionManagement target, DistributionManagement source, boolean sourceDominant, Map<Object, Object> context) protected void
mergeDistributionManagement_Site
(DistributionManagement target, DistributionManagement source, boolean sourceDominant, Map<Object, Object> context) protected void
mergeDistributionManagement_SnapshotRepository
(DistributionManagement target, DistributionManagement source, boolean sourceDominant, Map<Object, Object> context) protected void
protected void
mergeModel_ArtifactId
(Model target, Model source, boolean sourceDominant, Map<Object, Object> context) protected void
mergeModel_CiManagement
(Model target, Model source, boolean sourceDominant, Map<Object, Object> context) protected void
mergeModel_Contributors
(Model target, Model source, boolean sourceDominant, Map<Object, Object> context) protected void
mergeModel_Developers
(Model target, Model source, boolean sourceDominant, Map<Object, Object> context) protected void
mergeModel_IssueManagement
(Model target, Model source, boolean sourceDominant, Map<Object, Object> context) protected void
protected void
mergeModel_MailingLists
(Model target, Model source, boolean sourceDominant, Map<Object, Object> context) protected void
mergeModel_ModelVersion
(Model target, Model source, boolean sourceDominant, Map<Object, Object> context) protected void
protected void
mergeModel_Organization
(Model target, Model source, boolean sourceDominant, Map<Object, Object> context) protected void
mergeModel_Prerequisites
(Model target, Model source, boolean sourceDominant, Map<Object, Object> context) protected void
protected void
protected void
mergeModelBase_Modules
(ModelBase target, ModelBase source, boolean sourceDominant, Map<Object, Object> context) protected void
mergeModelBase_PluginRepositories
(ModelBase target, ModelBase source, boolean sourceDominant, Map<Object, Object> context) protected void
mergeModelBase_Repositories
(ModelBase target, ModelBase source, boolean sourceDominant, Map<Object, Object> context) protected void
mergePlugin_Executions
(Plugin target, Plugin source, boolean sourceDominant, Map<Object, Object> context) protected void
mergePluginExecution_Goals
(PluginExecution target, PluginExecution source, boolean sourceDominant, Map<Object, Object> context) protected void
mergeReportPlugin_ReportSets
(ReportPlugin target, ReportPlugin source, boolean sourceDominant, Map<Object, Object> context) protected void
protected void
mergeScm_DeveloperConnection
(Scm target, Scm source, boolean sourceDominant, Map<Object, Object> context) protected void
protected void
protected void
Methods inherited from class org.apache.maven.model.merge.ModelMerger
getContributorKey, getDeveloperKey, getLicenseKey, getMailingListKey, getNotifierKey, getProfileKey, getRepositoryKey, getResourceKey, merge, mergeActivation, mergeBuild, mergeBuild_Extensions, mergeBuild_OutputDirectory, mergeBuild_ScriptSourceDirectory, mergeBuild_SourceDirectory, mergeBuild_TestOutputDirectory, mergeBuild_TestSourceDirectory, mergeBuildBase, mergeBuildBase_DefaultGoal, mergeBuildBase_Directory, mergeBuildBase_FinalName, mergeCiManagement, mergeCiManagement_Notifiers, mergeCiManagement_System, mergeCiManagement_Url, mergeConfigurationContainer, mergeConfigurationContainer_Configuration, mergeConfigurationContainer_Inherited, mergeContributor, mergeContributor_Email, mergeContributor_Name, mergeContributor_Organization, mergeContributor_OrganizationUrl, mergeContributor_Properties, mergeContributor_Roles, mergeContributor_Timezone, mergeContributor_Url, mergeDependency, mergeDependency_ArtifactId, mergeDependency_Classifier, mergeDependency_Exclusions, mergeDependency_GroupId, mergeDependency_Optional, mergeDependency_Scope, mergeDependency_SystemPath, mergeDependency_Type, mergeDependency_Version, mergeDependencyManagement, mergeDependencyManagement_Dependencies, mergeDeploymentRepository, mergeDeploymentRepository_UniqueVersion, mergeDeveloper, mergeDeveloper_Id, mergeDistributionManagement, mergeDistributionManagement_DownloadUrl, mergeDistributionManagement_Status, mergeExclusion, mergeExclusion_ArtifactId, mergeExclusion_GroupId, mergeExtension, mergeExtension_ArtifactId, mergeExtension_GroupId, mergeExtension_Version, mergeFileSet, mergeFileSet_Directory, mergeIssueManagement, mergeIssueManagement_System, mergeIssueManagement_Url, mergeLicense, mergeLicense_Comments, mergeLicense_Distribution, mergeLicense_Name, mergeLicense_Url, mergeMailingList, mergeMailingList_Archive, mergeMailingList_Name, mergeMailingList_OtherArchives, mergeMailingList_Post, mergeMailingList_Subscribe, mergeMailingList_Unsubscribe, mergeModel_Build, mergeModel_ChildProjectUrlInheritAppendPath, mergeModel_Description, mergeModel_GroupId, mergeModel_InceptionYear, mergeModel_Packaging, mergeModel_Parent, mergeModel_Scm, mergeModel_Version, mergeModelBase, mergeModelBase_Dependencies, mergeModelBase_DependencyManagement, mergeModelBase_DistributionManagement, mergeModelBase_Properties, mergeModelBase_Reporting, mergeNotifier, mergeNotifier_Address, mergeNotifier_Configuration, mergeNotifier_SendOnError, mergeNotifier_SendOnFailure, mergeNotifier_SendOnSuccess, mergeNotifier_SendOnWarning, mergeNotifier_Type, mergeOrganization, mergeOrganization_Name, mergeOrganization_Url, mergeParent, mergeParent_ArtifactId, mergeParent_GroupId, mergeParent_RelativePath, mergeParent_Version, mergePatternSet, mergePatternSet_Excludes, mergePatternSet_Includes, mergePlugin, mergePlugin_ArtifactId, mergePlugin_Dependencies, mergePlugin_Extensions, mergePlugin_GroupId, mergePlugin_Version, mergePluginConfiguration, mergePluginConfiguration_PluginManagement, mergePluginContainer, mergePluginContainer_Plugins, mergePluginExecution, mergePluginExecution_Id, mergePluginExecution_Phase, mergePluginManagement, mergePrerequisites, mergePrerequisites_Maven, mergeProfile, mergeRelocation, mergeRelocation_ArtifactId, mergeRelocation_GroupId, mergeRelocation_Message, mergeRelocation_Version, mergeReporting, mergeReporting_ExcludeDefaults, mergeReporting_OutputDirectory, mergeReporting_Plugins, mergeReportPlugin, mergeReportPlugin_ArtifactId, mergeReportPlugin_GroupId, mergeReportPlugin_Version, mergeReportSet, mergeReportSet_Id, mergeReportSet_Reports, mergeRepository, mergeRepository_Releases, mergeRepository_Snapshots, mergeRepositoryBase, mergeRepositoryBase_Id, mergeRepositoryBase_Layout, mergeRepositoryBase_Name, mergeRepositoryBase_Url, mergeRepositoryPolicy, mergeRepositoryPolicy_ChecksumPolicy, mergeRepositoryPolicy_Enabled, mergeRepositoryPolicy_UpdatePolicy, mergeResource, mergeResource_Filtering, mergeResource_MergeId, mergeResource_TargetPath, mergeScm, mergeScm_ChildScmConnectionInheritAppendPath, mergeScm_ChildScmDeveloperConnectionInheritAppendPath, mergeScm_ChildScmUrlInheritAppendPath, mergeScm_Tag, mergeSite_ChildSiteUrlInheritAppendPath, mergeSite_Id, mergeSite_Name
-
Field Details
-
CHILD_PATH_ADJUSTMENT
The hint key for the child path adjustment used during inheritance for URL calculations.- See Also:
-
ARTIFACT_ID
The context key for the artifact id of the target model.- See Also:
-
-
Constructor Details
-
MavenModelMerger
public MavenModelMerger()
-
-
Method Details
-
mergeModel
protected void mergeModel(Model target, Model source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeModel
in classModelMerger
-
mergeModel_Name
protected void mergeModel_Name(Model target, Model source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeModel_Name
in classModelMerger
-
mergeModel_Url
protected void mergeModel_Url(Model target, Model source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeModel_Url
in classModelMerger
-
mergeModel_Organization
protected void mergeModel_Organization(Model target, Model source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeModel_Organization
in classModelMerger
-
mergeModel_IssueManagement
protected void mergeModel_IssueManagement(Model target, Model source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeModel_IssueManagement
in classModelMerger
-
mergeModel_CiManagement
protected void mergeModel_CiManagement(Model target, Model source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeModel_CiManagement
in classModelMerger
-
mergeModel_ModelVersion
protected void mergeModel_ModelVersion(Model target, Model source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeModel_ModelVersion
in classModelMerger
-
mergeModel_ArtifactId
protected void mergeModel_ArtifactId(Model target, Model source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeModel_ArtifactId
in classModelMerger
-
mergeModel_Profiles
protected void mergeModel_Profiles(Model target, Model source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeModel_Profiles
in classModelMerger
-
mergeModel_Prerequisites
protected void mergeModel_Prerequisites(Model target, Model source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeModel_Prerequisites
in classModelMerger
-
mergeModel_Licenses
protected void mergeModel_Licenses(Model target, Model source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeModel_Licenses
in classModelMerger
-
mergeModel_Developers
protected void mergeModel_Developers(Model target, Model source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeModel_Developers
in classModelMerger
-
mergeModel_Contributors
protected void mergeModel_Contributors(Model target, Model source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeModel_Contributors
in classModelMerger
-
mergeModel_MailingLists
protected void mergeModel_MailingLists(Model target, Model source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeModel_MailingLists
in classModelMerger
-
mergeModelBase_Modules
protected void mergeModelBase_Modules(ModelBase target, ModelBase source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeModelBase_Modules
in classModelMerger
-
mergeModelBase_Repositories
protected void mergeModelBase_Repositories(ModelBase target, ModelBase source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeModelBase_Repositories
in classModelMerger
-
mergeModelBase_PluginRepositories
protected void mergeModelBase_PluginRepositories(ModelBase target, ModelBase source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeModelBase_PluginRepositories
in classModelMerger
-
mergeBuildBase_Filters
protected void mergeBuildBase_Filters(BuildBase target, BuildBase source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeBuildBase_Filters
in classModelMerger
-
mergeBuildBase_Resources
protected void mergeBuildBase_Resources(BuildBase target, BuildBase source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeBuildBase_Resources
in classModelMerger
-
mergeBuildBase_TestResources
protected void mergeBuildBase_TestResources(BuildBase target, BuildBase source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeBuildBase_TestResources
in classModelMerger
-
mergeDistributionManagement_Repository
protected void mergeDistributionManagement_Repository(DistributionManagement target, DistributionManagement source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeDistributionManagement_Repository
in classModelMerger
-
mergeDistributionManagement_SnapshotRepository
protected void mergeDistributionManagement_SnapshotRepository(DistributionManagement target, DistributionManagement source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeDistributionManagement_SnapshotRepository
in classModelMerger
-
mergeDistributionManagement_Site
protected void mergeDistributionManagement_Site(DistributionManagement target, DistributionManagement source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeDistributionManagement_Site
in classModelMerger
-
mergeSite
protected void mergeSite(Site target, Site source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeSite
in classModelMerger
-
isSiteEmpty
-
mergeSite_Url
protected void mergeSite_Url(Site target, Site source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeSite_Url
in classModelMerger
-
mergeScm_Url
protected void mergeScm_Url(Scm target, Scm source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeScm_Url
in classModelMerger
-
mergeScm_Connection
protected void mergeScm_Connection(Scm target, Scm source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeScm_Connection
in classModelMerger
-
mergeScm_DeveloperConnection
protected void mergeScm_DeveloperConnection(Scm target, Scm source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeScm_DeveloperConnection
in classModelMerger
-
mergePlugin_Executions
protected void mergePlugin_Executions(Plugin target, Plugin source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergePlugin_Executions
in classModelMerger
-
mergePluginExecution_Goals
protected void mergePluginExecution_Goals(PluginExecution target, PluginExecution source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergePluginExecution_Goals
in classModelMerger
-
mergeReportPlugin_ReportSets
protected void mergeReportPlugin_ReportSets(ReportPlugin target, ReportPlugin source, boolean sourceDominant, Map<Object, Object> context) - Overrides:
mergeReportPlugin_ReportSets
in classModelMerger
-
getDependencyKey
- Overrides:
getDependencyKey
in classModelMerger
-
getPluginKey
- Overrides:
getPluginKey
in classModelMerger
-
getPluginExecutionKey
- Overrides:
getPluginExecutionKey
in classModelMerger
-
getReportPluginKey
- Overrides:
getReportPluginKey
in classModelMerger
-
getReportSetKey
- Overrides:
getReportSetKey
in classModelMerger
-
getRepositoryBaseKey
- Overrides:
getRepositoryBaseKey
in classModelMerger
-
getExtensionKey
- Overrides:
getExtensionKey
in classModelMerger
-
getExclusionKey
- Overrides:
getExclusionKey
in classModelMerger
-
extrapolateChildUrl
-