bug(java): dependOn contains extra dependencies for pom.xml
files with modules when using SBOM formats
#7802
Milestone
pom.xml
files with modules when using SBOM formats
#7802
Description
When we parse
pom.xml
files withmodules
- we mark modules asroot
dependencies.e.g.:
This is not problem for Trivy formats.
But when we collect relationships for
BOM Core
- these root packages contain incorrect relationships:Solutions
I see several solutions for this case:
DependsOn
array of rootpom.xml
file. We can save them and use the following logic -root
->module
->dependencies
.Before marking root Package in
BOM Core
we will detectroot pom
from allroot
Packages.But i am not sure about this way.
module
. We can't say thatmodule
is root package, but on other hands we can't say that module is dependency, so addingmodule
relationship looks like a solution.The text was updated successfully, but these errors were encountered: