mirror of https://github.com/apache/maven.git
[MNG-8293] Fix resolution of reactor models (#1783)
This commit is contained in:
parent
b2b868f864
commit
954eae7b56
|
@ -1640,7 +1640,7 @@ public class DefaultModelBuilder implements ModelBuilder {
|
||||||
if (sources != null) {
|
if (sources != null) {
|
||||||
for (ModelSource source : sources) {
|
for (ModelSource source : sources) {
|
||||||
Model model = derive(source).readRawModel();
|
Model model = derive(source).readRawModel();
|
||||||
if (Objects.equals(model.getVersion(), version)) {
|
if (Objects.equals(getVersion(model), version)) {
|
||||||
return source;
|
return source;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue