mirror of https://github.com/apache/maven.git
o Fixed resolution of local parents
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@780642 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6548d31804
commit
bdcb479015
|
@ -330,6 +330,10 @@ public class DefaultModelBuilder
|
||||||
Parent parent = childModel.getParent();
|
Parent parent = childModel.getParent();
|
||||||
|
|
||||||
File pomFile = new File( new File( projectDirectory, parent.getRelativePath() ).toURI().normalize() );
|
File pomFile = new File( new File( projectDirectory, parent.getRelativePath() ).toURI().normalize() );
|
||||||
|
if ( pomFile.isDirectory() )
|
||||||
|
{
|
||||||
|
pomFile = new File( pomFile, "pom.xml" );
|
||||||
|
}
|
||||||
if ( !pomFile.isFile() )
|
if ( !pomFile.isFile() )
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue