mirror of
https://github.com/apache/maven.git
synced 2025-02-07 02:29:10 +00:00
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:
parent
e74e31f2a4
commit
e3e5cfcf12
@ -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 MavenExecutionResult execute( MavenExecutionRequest request )
|
||||
{
|
||||
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 ) );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user