[MNG-4348] [regression] Unnecessary remote repo access for POMs while execution plugin that does not require dependency resolution

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@812914 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-09-09 12:08:26 +00:00
parent 3aa97fe7c2
commit 2c2c13aefb
2 changed files with 8 additions and 0 deletions

View File

@ -84,6 +84,12 @@ public class DefaultProjectDependenciesResolver
return resolved;
}
if ( ( scopesToCollect == null || scopesToCollect.isEmpty() )
&& ( scopesToResolve == null || scopesToResolve.isEmpty() ) )
{
return resolved;
}
/*
Logic for transitve global exclusions

View File

@ -181,6 +181,8 @@ public class DefaultLifecycleExecutor
{
logger.debug( "=== PROJECT BUILD PLAN ================================================" );
logger.debug( "Project: " + getKey( currentProject ) );
logger.debug( "Dependencies (collect): " + executionPlan.getRequiredCollectionScopes() );
logger.debug( "Dependencies (resolve): " + executionPlan.getRequiredResolutionScopes() );
for ( MojoExecution mojoExecution : executionPlan.getExecutions() )
{