Skip to content

Commit

Permalink
[MNG-8341] Fix possible deadlock in ModelBuilder (#1843)
Browse files Browse the repository at this point in the history
The deadlock can happen when the root pom inherit from a parent which is a subproject, the subproject inheriting from an external parent.
  • Loading branch information
gnodet authored Oct 25, 2024
1 parent 2e01948 commit 2f620ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ private Model readParentLocally(Model childModel) throws ModelBuilderException {
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, "..");
}

Expand Down

0 comments on commit 2f620ef

Please sign in to comment.