Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 75b02ab

Browse files
committedJun 19, 2024
Add dependencyManagement exclusions to the child exclusions
1 parent dfe757e commit 75b02ab

File tree

1 file changed

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

1 file changed

+2
-0
lines changed
 

Diff for: ‎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)
Please sign in to comment.