[FIXES MNG-5840] if the pom.xml at <relativePath> is the same groupId:artifactId but different version fall back to the repository for parent resolution

This commit is contained in:
Stephen Connolly 2015-06-05 11:26:13 +01:00
parent 5c6024219f
commit 40d5087b6b
1 changed files with 5 additions and 0 deletions

View File

@ -919,6 +919,11 @@ private ModelData readParentLocally( Model childModel, ModelSource childSource,
.setMessage( buffer.toString() ).setLocation( parent.getLocation( "" ) ) );
return null;
}
if ( version != null && parent.getVersion() != null && !version.equals( parent.getVersion() ) )
{
// version skew drop back to resolution from the repository
return null;
}
//
// Here we just need to know that a version is fine to use but this validation we can do in our workspace