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 delegatingLocalArtifactRepository = new DelegatingLocalArtifactRepository();
delegatingLocalArtifactRepository.addToEndOfSearchOrder( new UserLocalArtifactRepository( request.getLocalRepository() ) ); delegatingLocalArtifactRepository.addToEndOfSearchOrder( new UserLocalArtifactRepository( request.getLocalRepository() ) );
if ( localArtifactRepositories != null && localArtifactRepositories.size() > 0 )
{
delegatingLocalArtifactRepository.addToBeginningOfSearchOrder( localArtifactRepositories.get( 0 ) );
}
request.setLocalRepository( delegatingLocalArtifactRepository ); request.setLocalRepository( delegatingLocalArtifactRepository );
MavenSession session; MavenSession session;
@ -141,12 +147,7 @@ public class DefaultMaven
// Reactor // Reactor
// Workspace // Workspace
// User Local Repository // User Local Repository
if ( localArtifactRepositories != null && localArtifactRepositories.size() > 0 )
{
delegatingLocalArtifactRepository.addToBeginningOfSearchOrder( localArtifactRepositories.get( 0 ) );
}
delegatingLocalArtifactRepository.addToBeginningOfSearchOrder( new ReactorArtifactRepository( projects ) ); delegatingLocalArtifactRepository.addToBeginningOfSearchOrder( new ReactorArtifactRepository( projects ) );
if ( result.hasExceptions() ) if ( result.hasExceptions() )