mirror of https://github.com/apache/maven.git
[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:
parent
46de558b61
commit
e96c8dab7e
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue