From b6d1a5d1acfedd841bf5c83360a562e21db4d854 Mon Sep 17 00:00:00 2001 From: Milos Kleint Date: Thu, 3 Jul 2008 12:08:42 +0000 Subject: [PATCH] current model's remote repositories need to be calculated before the parent/origin is stored in lineage. fixes this scenario (as found in svn:https://www.dev.java.net/svn/grizzly/trunk) project defines remote custom repository and also has build extension that is only available at that remote repository. it defines RELEASE as the version of the extension artifact. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@673664 13f79535-47bb-0310-9956-ffa450edef68 --- .../build/model/DefaultModelLineageBuilder.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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,