Remove erroneous Java CPEs from generation (#1918)

Signed-off-by: Dan Luhring <dluhring@chainguard.dev>
This commit is contained in:
Dan Luhring 2023-07-06 16:12:55 -04:00 committed by GitHub
parent 8ce88e11fd
commit 81d8019207
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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