diff --git a/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java b/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java index 0e026e76e0..a0f5e5580c 100644 --- a/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java +++ b/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java @@ -294,7 +294,7 @@ public class DefaultMavenProjectBuilder { Profile profile = (Profile) it.next(); - modelInheritanceAssembler.mergeProfileWithModel( cachedModel, profile ); + modelInheritanceAssembler.mergeProfileWithModel( model, profile ); } model = modelInterpolator.interpolate( model );