Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
Signed-off-by: knqyf263 <knqyf263@gmail.com>
  • Loading branch information
knqyf263 committed Jan 31, 2024
1 parent b8d492f commit 226facd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/java/pom/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,11 +410,9 @@ func (p *parser) resolveDepManagement(props map[string]string, depManagement []p

// We need to recursively check all nested depManagements,
// so that we don't miss dependencies on nested depManagements with `Import` scope.
newProps := utils.MergeMaps(props, result.properties)
result.dependencyManagement = p.resolveDepManagement(newProps, result.dependencyManagement)
for k, dd := range result.dependencyManagement {
// Evaluate variables and overwrite dependencyManagement
result.dependencyManagement[k] = dd.Resolve(newProps, nil, nil)
result.dependencyManagement[k] = dd.Resolve(result.properties, nil, nil)
}
newDepManagement = p.mergeDependencyManagements(newDepManagement, result.dependencyManagement)
}
Expand Down

0 comments on commit 226facd

Please sign in to comment.