o provide a hook or IDE workspace repostiory implementations to insert themselves.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@773686 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2009-05-11 20:51:06 +00:00
parent e74e31f2a4
commit e3e5cfcf12
1 changed files with 14 additions and 0 deletions

View File

@ -68,6 +68,9 @@ public class DefaultMaven
@Requirement
protected RuntimeInformation runtimeInformation;
@Requirement
List<LocalArtifactRepository> localArtifactRepositories;
public List<String> getLifecyclePhases()
{
return lifecycleExecutor.getLifecyclePhases();
@ -132,6 +135,17 @@ public class DefaultMaven
{
return processResult( result, e );
}
// Desired order of precedence for local artifact repositories
//
// Reactor
// Workspace
// User Local Repository
if ( localArtifactRepositories != null && localArtifactRepositories.size() > 0 )
{
delegatingLocalArtifactRepository.addToBeginningOfSearchOrder( localArtifactRepositories.get( 0 ) );
}
delegatingLocalArtifactRepository.addToBeginningOfSearchOrder( new ReactorArtifactRepository( projects ) );