From 3f59f88d861f382daab593577208f8aab749f9d4 Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Thu, 21 May 2009 19:58:13 +0000 Subject: [PATCH] o Fixed inheritance to exclude project name git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@777237 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/maven/model/merge/MavenModelMerger.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/maven-model-builder/src/main/java/org/apache/maven/model/merge/MavenModelMerger.java b/maven-model-builder/src/main/java/org/apache/maven/model/merge/MavenModelMerger.java index 5a215c630e..12bc83f099 100644 --- a/maven-model-builder/src/main/java/org/apache/maven/model/merge/MavenModelMerger.java +++ b/maven-model-builder/src/main/java/org/apache/maven/model/merge/MavenModelMerger.java @@ -76,6 +76,19 @@ public class MavenModelMerger super.mergeModel( target, source, sourceDominant, context ); } + + @Override + protected void mergeModel_Name( Model target, Model source, boolean sourceDominant, Map context ) + { + String src = source.getName(); + if ( src != null ) + { + if ( sourceDominant ) + { + target.setName( src ); + } + } + } @Override protected void mergeModel_Url( Model target, Model source, boolean sourceDominant, Map context )