mirror of https://github.com/apache/maven.git
[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:
parent
7a9c89b337
commit
da8d45d550
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue