From 2fb808c70306ccead0b0958589249a60cb7acde0 Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Tue, 29 Mar 2005 07:02:29 +0000 Subject: [PATCH] fix repository inheritence git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163703 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/maven/project/DefaultMavenProjectBuilder.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java b/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java index 00082f84ca..7827fc42ce 100644 --- a/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java +++ b/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java @@ -267,11 +267,13 @@ public class DefaultMavenProjectBuilder List aggregatedRemoteWagonRepositories ) throws ProjectBuildingException { + aggregatedRemoteWagonRepositories.addAll( buildArtifactRepositories( model.getRepositories() ) ); + MavenProject project = new MavenProject( model ); lineage.addFirst( project ); - Parent parentModel = project.getModel().getParent(); + Parent parentModel = model.getParent(); if ( parentModel != null ) { @@ -297,9 +299,6 @@ public class DefaultMavenProjectBuilder // as we go in order to do this. // ---------------------------------------------------------------------- - aggregatedRemoteWagonRepositories.addAll( - buildArtifactRepositories( project.getModel().getRepositories() ) ); - MavenProject parent; Model cachedModel = getCachedModel( parentModel.getGroupId(), parentModel.getArtifactId(), parentModel.getVersion() );