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
This commit is contained in:
Benjamin Bentmann 2009-05-13 20:44:43 +00:00
parent dcfc099be4
commit 5d20be91e3
1 changed files with 4 additions and 1 deletions

View File

@ -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 )