mirror of https://github.com/apache/maven.git
[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:
parent
f4bd89f38d
commit
ed18f8b7c6
|
@ -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.
|
||||
*/
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue