From e96c8dab7eda4abc29f9cf9a0843e90afca1e6ab Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Thu, 5 Aug 2010 17:02:24 +0000 Subject: [PATCH] [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 --- .../internal/LifecycleDependencyResolver.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDependencyResolver.java b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDependencyResolver.java index 63b40654ee..86a1b71959 100644 --- a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDependencyResolver.java +++ b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDependencyResolver.java @@ -122,12 +122,6 @@ public class LifecycleDependencyResolver boolean aggregating, Set projectArtifacts ) throws LifecycleExecutionException { - Set 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 artifacts = + getProjectDependencies( project, scopesToCollect, scopesToResolve, session, aggregating, + projectArtifacts ); + + project.setResolvedArtifacts( artifacts ); } private Set getProjectDependencies( MavenProject project, Collection scopesToCollect,