[MNG-4750] [regression] MavenProject.getDependencyArtifacts() aren't resolved

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@982696 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2010-08-05 17:02:24 +00:00
parent 46de558b61
commit e96c8dab7e
1 changed files with 6 additions and 6 deletions

View File

@ -122,12 +122,6 @@ public class LifecycleDependencyResolver
boolean aggregating, Set<Artifact> projectArtifacts )
throws LifecycleExecutionException
{
Set<Artifact> artifacts =
getProjectDependencies( project, scopesToCollect, scopesToResolve, session, aggregating,
projectArtifacts );
project.setResolvedArtifacts( artifacts );
if ( project.getDependencyArtifacts() == null )
{
try
@ -139,6 +133,12 @@ public class LifecycleDependencyResolver
throw new LifecycleExecutionException( e );
}
}
Set<Artifact> artifacts =
getProjectDependencies( project, scopesToCollect, scopesToResolve, session, aggregating,
projectArtifacts );
project.setResolvedArtifacts( artifacts );
}
private Set<Artifact> getProjectDependencies( MavenProject project, Collection<String> scopesToCollect,