mirror of https://github.com/apache/maven.git
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:
parent
c7d5e83520
commit
7bc8cf9fb1
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue