[MNG-4791] [regression] POM artifacts passed into MavenProjectBuilder.buildFromRepository() are no longer resolved

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@992083 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2010-09-02 19:50:53 +00:00
parent 7a9c89b337
commit da8d45d550
1 changed files with 7 additions and 0 deletions

View File

@ -251,6 +251,13 @@ public class DefaultProjectBuilder
File pomFile = pomArtifact.getFile();
if ( "pom".equals( artifact.getType() ) )
{
artifact.selectVersion( pomArtifact.getVersion() );
artifact.setFile( pomFile );
artifact.setResolved( true );
}
return build( localProject ? pomFile : null, new FileModelSource( pomFile ), configuration );
}