mirror of https://github.com/apache/maven.git
[MNG-8341] Fix possible deadlock in ModelBuilder (#1843)
The deadlock can happen when the root pom inherit from a parent which is a subproject, the subproject inheriting from an external parent.
This commit is contained in:
parent
2e01948c1e
commit
2f620ef9c9
|
@ -921,7 +921,7 @@ public class DefaultModelBuilder implements ModelBuilder {
|
|||
if (candidateSource == null) {
|
||||
candidateSource = resolveReactorModel(parent.getGroupId(), parent.getArtifactId(), parent.getVersion());
|
||||
}
|
||||
if (candidateSource == null) {
|
||||
if (candidateSource == null && parentPath == null) {
|
||||
candidateSource = request.getSource().resolve(modelProcessor::locateExistingPom, "..");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue