From 75b02ab11b48bba4b6b1440bdfc7ab040f28a3bc Mon Sep 17 00:00:00 2001 From: Colm O hEigeartaigh Date: Wed, 19 Jun 2024 15:11:40 +0100 Subject: [PATCH] Add dependencyManagement exclusions to the child exclusions --- pkg/dependency/parser/java/pom/pom.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/dependency/parser/java/pom/pom.go b/pkg/dependency/parser/java/pom/pom.go index 3a0170d36811..71469a02ff4e 100644 --- a/pkg/dependency/parser/java/pom/pom.go +++ b/pkg/dependency/parser/java/pom/pom.go @@ -268,6 +268,8 @@ func (d pomDependency) Resolve(props map[string]string, depManagement, rootDepMa } if len(dep.Exclusions.Exclusion) == 0 { dep.Exclusions = managed.Exclusions + } else if len(managed.Exclusions.Exclusion) > 0 { + dep.Exclusions.Exclusion = append(dep.Exclusions.Exclusion, managed.Exclusions.Exclusion...) } } return dep