mirror of https://github.com/apache/maven.git
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:
parent
3f08e048a9
commit
096014099e
|
@ -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() )
|
||||
|
|
Loading…
Reference in New Issue