From 7afb4637c8ba9d9e3ff9f9574f537be9d0a84a17 Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Fri, 15 May 2009 21:26:55 +0000 Subject: [PATCH] o Fixed resolution of project dependencies (regardless whether we want to resolve the root, the metadata source needs to resolve the root's POM so we better point it at the one we're interested in) git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@775350 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/lifecycle/DefaultLifecycleExecutor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java b/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java index 3f8a377321..8e3d9f4899 100644 --- a/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java +++ b/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java @@ -970,7 +970,9 @@ public class DefaultLifecycleExecutor { MavenProject project = session.getCurrentProject(); - Artifact artifact = repositorySystem.createArtifact( project.getGroupId(), project.getArtifactId(), project.getVersion(), null, project.getPackaging() ); + Artifact artifact = + repositorySystem.createProjectArtifact( project.getGroupId(), project.getArtifactId(), project.getVersion() ); + artifact.setFile( project.getFile() ); ArtifactFilter filter = new ScopeArtifactFilter( scope );