Skip to content

Commit 5e5459c

Browse files
Added example
1 parent 114b414 commit 5e5459c

1 file changed

Lines changed: 99 additions & 0 deletions

File tree

  • examples/multi-component-package
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<bom xmlns="http://cyclonedx.org/schema/bom/1.0" version="1">
3+
<components>
4+
<component type="library">
5+
<publisher>Example Incorporated</publisher>
6+
<group>com.example</group>
7+
<name>xmlutil</name>
8+
<version>1.0.0</version>
9+
<description>A makebelieve XML utility library</description>
10+
<hashes>
11+
<hash alg="MD5">2b67669c925048d1a5c7f124d9ba1d2a</hash>
12+
<hash alg="SHA-1">72ca79908c814022905e86f8bbecd9b829352139</hash>
13+
<hash alg="SHA-256">1389877662864d2bb0488b4b1e417ce5647a1687084341178a203b243dfe90e7</hash>
14+
</hashes>
15+
<licenses>
16+
<license>
17+
<id>Apache-2.0</id>
18+
</license>
19+
</licenses>
20+
<copyright>Copyright Example Inc. All rights reserved.</copyright>
21+
<cpe>cpe:/a:example:xmlutil:1.0.0</cpe>
22+
<purl>pkg:maven/com.example/xmlutil@1.0.0?packaging=jar</purl>
23+
<modified>false</modified>
24+
</component>
25+
<component type="library">
26+
<publisher>Example Incorporated</publisher>
27+
<group>com.example</group>
28+
<name>dbutil</name>
29+
<version>1.0.0</version>
30+
<description>A makebelieve database utility library</description>
31+
<hashes>
32+
<hash alg="MD5">a2946e782ba6cac90c77ab3c325272b2</hash>
33+
<hash alg="SHA-1">a770395dc89fdd6a35e5341743b1d636f37c197b</hash>
34+
<hash alg="SHA-256">bf7dac4be365ce865b447fc390146ab9dc4cc422523bd2af84e6ec1356e7c4ec</hash>
35+
</hashes>
36+
<licenses>
37+
<license>
38+
<id>Apache-2.0</id>
39+
</license>
40+
</licenses>
41+
<copyright>Copyright Example Inc. All rights reserved.</copyright>
42+
<cpe>cpe:/a:example:dbutil:1.0.0</cpe>
43+
<purl>pkg:maven/com.example/dbutil@1.0.0?packaging=jar</purl>
44+
<modified>false</modified>
45+
</component>
46+
<component type="framework">
47+
<publisher>Example Incorporated</publisher>
48+
<group>com.example</group>
49+
<name>service</name>
50+
<version>1.0.0</version>
51+
<description>A makebelieve service interface framework</description>
52+
<hashes>
53+
<hash alg="MD5">9fa1e81d3476c176b8bedd6c8f9584d3</hash>
54+
<hash alg="SHA-1">a2aeb021bdc418452441cbc7d83590758dcd8f01</hash>
55+
<hash alg="SHA-256">b3090683f9c92eb1552c7d07b5ea30e09adc27c943897639914ad9e2c375eed9</hash>
56+
</hashes>
57+
<licenses>
58+
<license>
59+
<id>Apache-2.0</id>
60+
</license>
61+
</licenses>
62+
<copyright>Copyright Example Inc. All rights reserved.</copyright>
63+
<cpe>cpe:/a:example:service:1.0.0</cpe>
64+
<purl>pkg:maven/com.example/service@1.0.0?packaging=jar</purl>
65+
<modified>false</modified>
66+
</component>
67+
<component type="operating-system">
68+
<publisher>Example Incorporated</publisher>
69+
<group>com.example</group>
70+
<name>coreos</name>
71+
<version>1.0.0</version>
72+
<description>A makebelieve operating system</description>
73+
<licenses>
74+
<license>
75+
<id>Apache-2.0</id>
76+
</license>
77+
</licenses>
78+
<copyright>Copyright Example Inc. All rights reserved.</copyright>
79+
<cpe>cpe:/a:example:coreos:1.0.0</cpe>
80+
<purl>pkg:maven/com.example/coreos@1.0.0?packaging=jar</purl>
81+
<modified>false</modified>
82+
</component>
83+
<component type="device">
84+
<publisher>Example Incorporated</publisher>
85+
<group>com.example</group>
86+
<name>drone</name>
87+
<version>D-15214</version>
88+
<description>A makebelieve device</description>
89+
<licenses>
90+
<license>
91+
<name>Example Inc Hardware License</name>
92+
</license>
93+
</licenses>
94+
<copyright>Copyright Example Inc. All rights reserved.</copyright>
95+
<cpe>cpe:/h:example:drone:D-15214</cpe>
96+
<modified>false</modified>
97+
</component>
98+
</components>
99+
</bom>

0 commit comments

Comments
 (0)