mirror of https://github.com/apache/maven.git
[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:
parent
5c6024219f
commit
40d5087b6b
|
@ -919,6 +919,11 @@ public class DefaultModelBuilder
|
||||||
.setMessage( buffer.toString() ).setLocation( parent.getLocation( "" ) ) );
|
.setMessage( buffer.toString() ).setLocation( parent.getLocation( "" ) ) );
|
||||||
return null;
|
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
|
// Here we just need to know that a version is fine to use but this validation we can do in our workspace
|
||||||
|
|
Loading…
Reference in New Issue