Modified to check for duplicate repository entries in the aggregated remote repository list as the lineage of projects is built.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@219278 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2005-07-16 02:05:03 +00:00
parent c7d5e83520
commit 7bc8cf9fb1
1 changed files with 10 additions and 1 deletions

View File

@ -431,7 +431,16 @@ public class DefaultMavenProjectBuilder
{
List respositories = ProjectUtils.buildArtifactRepositories( model.getRepositories(),
artifactRepositoryFactory, container );
aggregatedRemoteWagonRepositories.addAll( respositories );
for ( Iterator it = respositories.iterator(); it.hasNext(); )
{
ArtifactRepository repository = (ArtifactRepository) it.next();
if ( !aggregatedRemoteWagonRepositories.contains( repository ) )
{
aggregatedRemoteWagonRepositories.add( repository );
}
}
}
MavenProject project = new MavenProject( model );