Skip to content

Commit 4f4b52f

Browse files
committed
HADOOP-18590. Publish SBOM artifacts
1 parent 5022003 commit 4f4b52f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

pom.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/x
118118
<spotbugs-maven-plugin.version>4.2.0</spotbugs-maven-plugin.version>
119119
<jsonschema2pojo-maven-plugin.version>1.1.1</jsonschema2pojo-maven-plugin.version>
120120
<maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version>
121+
<cyclonedx.version>2.7.3</cyclonedx.version>
121122

122123
<shell-executable>bash</shell-executable>
123124

@@ -484,6 +485,19 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/x
484485
<artifactId>maven-compiler-plugin</artifactId>
485486
<version>${maven-compiler-plugin.version}</version>
486487
</plugin>
488+
<plugin>
489+
<groupId>org.cyclonedx</groupId>
490+
<artifactId>cyclonedx-maven-plugin</artifactId>
491+
<version>${cyclonedx.version}</version>
492+
<executions>
493+
<execution>
494+
<phase>package</phase>
495+
<goals>
496+
<goal>makeBom</goal>
497+
</goals>
498+
</execution>
499+
</executions>
500+
</plugin>
487501
</plugins>
488502
</pluginManagement>
489503

@@ -592,6 +606,10 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/x
592606
<groupId>com.github.spotbugs</groupId>
593607
<artifactId>spotbugs-maven-plugin</artifactId>
594608
</plugin>
609+
<plugin>
610+
<groupId>org.cyclonedx</groupId>
611+
<artifactId>cyclonedx-maven-plugin</artifactId>
612+
</plugin>
595613
</plugins>
596614
</build>
597615

0 commit comments

Comments
 (0)