Skip to content

Commit 2bac371

Browse files
committed
fix: Add dependencyManagement exclusions to the child exclusions
1 parent dfe757e commit 2bac371

File tree

1 file changed

+2
-0
lines changed
  • pkg/dependency/parser/java/pom

1 file changed

+2
-0
lines changed

pkg/dependency/parser/java/pom/pom.go

+2
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,8 @@ func (d pomDependency) Resolve(props map[string]string, depManagement, rootDepMa
268268
}
269269
if len(dep.Exclusions.Exclusion) == 0 {
270270
dep.Exclusions = managed.Exclusions
271+
} else if len(managed.Exclusions.Exclusion) > 0 {
272+
dep.Exclusions.Exclusion = append(dep.Exclusions.Exclusion, managed.Exclusions.Exclusion...)
271273
}
272274
}
273275
return dep

0 commit comments

Comments
 (0)