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 )