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:
Benjamin Bentmann 2009-10-21 10:46:46 +00:00
parent 504f5bca65
commit d15b9be902
1 changed files with 4 additions and 8 deletions

View File

@ -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() )
{