Skip to content

Commit 55598e4

Browse files
authored
feat: generate CycloneDX SBOM (#47)
1 parent eed9e88 commit 55598e4

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
FROM docker.stackable.tech/stackable/hadoop:3.3.6-stackable0.0.0-dev
22

33
COPY --chown=stackable:stackable ./hdfs-utils-*.jar /stackable/hadoop/share/hadoop/tools/lib/
4+
COPY --chown=stackable:stackable ./bom.json /stackable/hadoop/share/hadoop/tools/lib/hdfs-utils.cdx.json

pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,23 @@
255255
</execution>
256256
</executions>
257257
</plugin>
258+
<plugin>
259+
<groupId>org.cyclonedx</groupId>
260+
<artifactId>cyclonedx-maven-plugin</artifactId>
261+
<version>2.8.0</version>
262+
<configuration>
263+
<projectType>application</projectType>
264+
<schemaVersion>1.5</schemaVersion>
265+
</configuration>
266+
<executions>
267+
<execution>
268+
<phase>package</phase>
269+
<goals>
270+
<goal>makeBom</goal>
271+
</goals>
272+
</execution>
273+
</executions>
274+
</plugin>
258275
</plugins>
259276
</build>
260277

0 commit comments

Comments
 (0)