mirror of
https://github.com/anchore/syft
synced 2024-11-10 06:14:16 +00:00
Remove erroneous Java CPEs from generation (#1918)
Signed-off-by: Dan Luhring <dluhring@chainguard.dev>
This commit is contained in:
parent
8ce88e11fd
commit
81d8019207
1 changed files with 84 additions and 0 deletions
|
@ -377,6 +377,90 @@ var defaultCandidateRemovals = buildCandidateRemovalLookup(
|
|||
candidateKey{PkgName: "docker"},
|
||||
candidateRemovals{VendorsToRemove: []string{"docker"}},
|
||||
},
|
||||
// Java packages
|
||||
{
|
||||
pkg.JavaPkg,
|
||||
candidateKey{PkgName: "maven-builder-support"},
|
||||
candidateRemovals{ProductsToRemove: []string{"maven"}},
|
||||
},
|
||||
{
|
||||
pkg.JavaPkg,
|
||||
candidateKey{PkgName: "maven-model"},
|
||||
candidateRemovals{ProductsToRemove: []string{"maven"}},
|
||||
},
|
||||
{
|
||||
pkg.JavaPkg,
|
||||
candidateKey{PkgName: "maven-repository-metadata"},
|
||||
candidateRemovals{ProductsToRemove: []string{"maven"}},
|
||||
},
|
||||
{
|
||||
pkg.JavaPkg,
|
||||
candidateKey{PkgName: "maven-settings"},
|
||||
candidateRemovals{ProductsToRemove: []string{"maven"}},
|
||||
},
|
||||
{
|
||||
pkg.JavaPkg,
|
||||
candidateKey{PkgName: "maven-settings-builder"},
|
||||
candidateRemovals{ProductsToRemove: []string{"maven"}},
|
||||
},
|
||||
{
|
||||
pkg.JavaPkg,
|
||||
candidateKey{PkgName: "maven-resolver-api"},
|
||||
candidateRemovals{ProductsToRemove: []string{"maven"}},
|
||||
},
|
||||
{
|
||||
pkg.JavaPkg,
|
||||
candidateKey{PkgName: "maven-resolver-connector-basic"},
|
||||
candidateRemovals{ProductsToRemove: []string{"maven"}},
|
||||
},
|
||||
{
|
||||
pkg.JavaPkg,
|
||||
candidateKey{PkgName: "maven-resolver-impl"},
|
||||
candidateRemovals{ProductsToRemove: []string{"maven"}},
|
||||
},
|
||||
{
|
||||
pkg.JavaPkg,
|
||||
candidateKey{PkgName: "maven-resolver-named-locks"},
|
||||
candidateRemovals{ProductsToRemove: []string{"maven"}},
|
||||
},
|
||||
{
|
||||
pkg.JavaPkg,
|
||||
candidateKey{PkgName: "maven-resolver-spi"},
|
||||
candidateRemovals{ProductsToRemove: []string{"maven"}},
|
||||
},
|
||||
{
|
||||
pkg.JavaPkg,
|
||||
candidateKey{PkgName: "maven-resolver-transport-file"},
|
||||
candidateRemovals{ProductsToRemove: []string{"maven"}},
|
||||
},
|
||||
{
|
||||
pkg.JavaPkg,
|
||||
candidateKey{PkgName: "maven-resolver-transport-http"},
|
||||
candidateRemovals{ProductsToRemove: []string{"maven"}},
|
||||
},
|
||||
{
|
||||
pkg.JavaPkg,
|
||||
candidateKey{PkgName: "maven-resolver-transport-wagon"},
|
||||
candidateRemovals{ProductsToRemove: []string{"maven"}},
|
||||
},
|
||||
{
|
||||
pkg.JavaPkg,
|
||||
candidateKey{PkgName: "maven-resolver-util"},
|
||||
candidateRemovals{ProductsToRemove: []string{"maven"}},
|
||||
},
|
||||
{
|
||||
pkg.JavaPkg,
|
||||
candidateKey{PkgName: "maven-shared-utils"},
|
||||
candidateRemovals{ProductsToRemove: []string{"maven"}},
|
||||
},
|
||||
{
|
||||
pkg.JavaPkg,
|
||||
candidateKey{PkgName: "gradle-enterprise"},
|
||||
candidateRemovals{
|
||||
ProductsToRemove: []string{"gradle-enterprise"},
|
||||
VendorsToRemove: []string{"gradle"},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
// buildCandidateLookup is a convenience function for creating the defaultCandidateAdditions set
|
||||
|
|
Loading…
Reference in a new issue