diff --git a/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java b/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java index c1157e940a..a1098936cd 100644 --- a/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java +++ b/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java @@ -292,7 +292,7 @@ public class DefaultMavenProjectBuilder } else { - aggregatedRemoteWagonRepositories = remoteArtifactRepositories; + aggregatedRemoteWagonRepositories = new ArrayList( remoteArtifactRepositories ); } for ( Iterator i = externalProfiles.iterator(); i.hasNext(); )