Skip to content

Commit

Permalink
fix: Add dependencyManagement exclusions to the child exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
coheigea committed Jun 19, 2024
1 parent dfe757e commit 2bac371
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/dependency/parser/java/pom/pom.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2bac371

Please sign in to comment.