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
This commit is contained in:
Benjamin Bentmann 2009-05-15 21:26:55 +00:00
parent 7612c0e020
commit 7afb4637c8
1 changed files with 3 additions and 1 deletions

View File

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