[MNG-2098] Artifact resolver incorrectly selects repository which doesn't contain the selected version

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@818829 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-09-25 12:14:31 +00:00
parent f4bd89f38d
commit ed18f8b7c6
1 changed files with 7 additions and 2 deletions

View File

@ -84,11 +84,16 @@ public class ArtifactRepositoryMetadata
public ArtifactRepository getRepository()
{
return artifact.getRepository();
return null;
}
public void setRepository( ArtifactRepository remoteRepository )
{
artifact.setRepository( remoteRepository );
/*
* NOTE: Metadata at the g:a level contains a collection of available versions. After merging, we can't tell
* which repository provides which version so the metadata manager must not restrict the artifact resolution to
* the repository with the most recent updates.
*/
}
}