mirror of
https://github.com/apache/maven.git
synced 2025-02-09 11:35:24 +00:00
[MNG-2318] - resolution of parent pom.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@767640 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b401496dca
commit
034562a96f
@ -670,7 +670,7 @@ private List<DomainModel> getDomainModelParentsFromLocalPath( PomClassicDomainMo
|
||||
{
|
||||
return domainModels;
|
||||
}
|
||||
|
||||
|
||||
File parentFile = new File( projectDirectory, domainModel.getRelativePathOfParent() ).getCanonicalFile();
|
||||
if ( parentFile.isDirectory() )
|
||||
{
|
||||
@ -716,7 +716,7 @@ private List<DomainModel> getDomainModelParentsFromLocalPath( PomClassicDomainMo
|
||||
{
|
||||
if ( isParentLocal( parentDomainModel.getRelativePathOfParent(), parentFile.getParentFile() ) )
|
||||
{
|
||||
domainModels.addAll( getDomainModelParentsFromLocalPath( parentDomainModel, localRepository, remoteRepositories, topProject.getFile(), projectBuilderConfiguration ) );
|
||||
domainModels.addAll( getDomainModelParentsFromLocalPath( parentDomainModel, localRepository, remoteRepositories, topProject.getFile().getParentFile(), projectBuilderConfiguration ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1409,15 +1409,8 @@ public void testDistributionManagement()
|
||||
{
|
||||
PomTestWrapper pom = this.buildPom( "distribution-management");
|
||||
assertEquals("legacy", pom.getValue( "distributionManagement/repository/layout" ));
|
||||
}
|
||||
/*
|
||||
public void testRelativePath()
|
||||
throws Exception
|
||||
{
|
||||
PomTestWrapper pom = this.buildPom( "relative-path/C");
|
||||
System.out.println(pom.getDomainModel().asString());
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
private void assertPathSuffixEquals( String expected, Object actual )
|
||||
{
|
||||
String a = actual.toString();
|
||||
|
Loading…
x
Reference in New Issue
Block a user