Enriches a component by reading an existing CycloneDX SBOM.
At most one resource can be specified as nested element which is then read as CycloneDX SBOM and enriches the component that contains this ComponentResolver:
type, name, group, version,
purl, bomRef, scope,
decription, publisher, copright,
mimeType and supplier are taken
from the SBOM's metadata component unless they are explicitly
specified on the component element itself.manufacturer is taken from the SBOM's metadata
component unless it is explicitly specified on the component
element itself or supplierismanufacturer
is true.authors, licenses, externalReferences,
dependencys and nested components
are taken from the SBOM's metadata component if and only if
there is no corresponding element in this component
element.externalReference is added to the
enclosing component if the nested resource provides an URL,
the enclosing component doesn't already
contain externalReferences, the parsed SBOM
doesn't already contain such an externalReference
and this element's createBomExternalReference is
not false.pkg:maven/ Package-URLs
as bom-ref.
The CycloneDX Core (Java) library is used to read the linked SBOM.
| Attribute | Description | Required |
|---|---|---|
| createBomExternalReference | Whether to create a bom-Type external reference in the
resolved compoment based on the nested resource's URI. since CycloneDX Antlib 0.2 |
No, defaults to true |