o put the workspace respository impl in earlier so poms can be resolved from the workspace.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@773694 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2009-05-11 20:59:54 +00:00
parent 3f08e048a9
commit 096014099e
1 changed files with 7 additions and 6 deletions

View File

@ -90,6 +90,12 @@ public class DefaultMaven
DelegatingLocalArtifactRepository delegatingLocalArtifactRepository = new DelegatingLocalArtifactRepository();
delegatingLocalArtifactRepository.addToEndOfSearchOrder( new UserLocalArtifactRepository( request.getLocalRepository() ) );
if ( localArtifactRepositories != null && localArtifactRepositories.size() > 0 )
{
delegatingLocalArtifactRepository.addToBeginningOfSearchOrder( localArtifactRepositories.get( 0 ) );
}
request.setLocalRepository( delegatingLocalArtifactRepository );
MavenSession session;
@ -142,11 +148,6 @@ public class DefaultMaven
// Workspace
// User Local Repository
if ( localArtifactRepositories != null && localArtifactRepositories.size() > 0 )
{
delegatingLocalArtifactRepository.addToBeginningOfSearchOrder( localArtifactRepositories.get( 0 ) );
}
delegatingLocalArtifactRepository.addToBeginningOfSearchOrder( new ReactorArtifactRepository( projects ) );
if ( result.hasExceptions() )