mirror of https://github.com/apache/maven.git
o Polished code
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@827957 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
504f5bca65
commit
d15b9be902
|
@ -179,8 +179,11 @@ public class DefaultMaven
|
|||
Thread.currentThread().setContextClassLoader( originalClassLoader );
|
||||
}
|
||||
|
||||
Map<String, MavenProject> projectMap;
|
||||
try
|
||||
{
|
||||
projectMap = getProjectMap( session.getProjects() );
|
||||
|
||||
ProjectSorter projectSorter = new ProjectSorter( session.getProjects() );
|
||||
|
||||
ProjectDependencyGraph projectDependencyGraph = createDependencyGraph( projectSorter, request );
|
||||
|
@ -211,14 +214,7 @@ public class DefaultMaven
|
|||
// Reactor
|
||||
// Workspace
|
||||
// User Local Repository
|
||||
try
|
||||
{
|
||||
delegatingLocalArtifactRepository.setBuildReactor( new ReactorArtifactRepository( getProjectMap( session.getProjects() ), session ) );
|
||||
}
|
||||
catch ( MavenExecutionException e )
|
||||
{
|
||||
return processResult( result, e );
|
||||
}
|
||||
delegatingLocalArtifactRepository.setBuildReactor( new ReactorArtifactRepository( projectMap, session ) );
|
||||
|
||||
if ( result.hasExceptions() )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue