diff --git a/maven-project/src/main/java/org/apache/maven/project/build/model/DefaultModelLineageBuilder.java b/maven-project/src/main/java/org/apache/maven/project/build/model/DefaultModelLineageBuilder.java index a5aa13b78f..2597629c87 100644 --- a/maven-project/src/main/java/org/apache/maven/project/build/model/DefaultModelLineageBuilder.java +++ b/maven-project/src/main/java/org/apache/maven/project/build/model/DefaultModelLineageBuilder.java @@ -107,6 +107,11 @@ public class DefaultModelLineageBuilder do { + currentRemoteRepositories = updateRepositorySet( current.getModel(), + currentRemoteRepositories, + current.getFile(), + config, + current.isValidProfilesXmlLocation() ); if ( lineage.size() == 0 ) { lineage.setOrigin( current.getModel(), @@ -122,11 +127,6 @@ public class DefaultModelLineageBuilder current.isValidProfilesXmlLocation() ); } - currentRemoteRepositories = updateRepositorySet( current.getModel(), - currentRemoteRepositories, - current.getFile(), - config, - current.isValidProfilesXmlLocation() ); current = resolveParentPom( current, currentRemoteRepositories,