From 5d20be91e3652eef42c6bed24f051ca37c9ffcce Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Wed, 13 May 2009 20:44:43 +0000 Subject: [PATCH] o Fixed resolution of project dependencies git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@774522 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/project/DefaultMavenProjectBuilder.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java b/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java index c4aef0f418..6556405284 100644 --- a/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java +++ b/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java @@ -278,7 +278,10 @@ public class DefaultMavenProjectBuilder throws ProjectBuildingException { MavenProject project = build( pomFile, configuration ); - Artifact artifact = repositorySystem.createArtifact( project.getGroupId(), project.getArtifactId(), project.getVersion(), project.getPackaging() ); + + Artifact artifact = + repositorySystem.createProjectArtifact( project.getGroupId(), project.getArtifactId(), project.getVersion() ); + artifact.setFile( pomFile ); ArtifactResolutionRequest request = new ArtifactResolutionRequest() .setArtifact( artifact )