Skip to content

Commit 3715e0c

Browse files
add sbom plugin - cyclonedx-maven-plugin (#260)
1 parent 6dc3e41 commit 3715e0c

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

pom.xml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,38 @@
212212

213213
<pluginManagement>
214214
<plugins>
215+
<plugin>
216+
<groupId>org.cyclonedx</groupId>
217+
<artifactId>cyclonedx-maven-plugin</artifactId>
218+
<version>2.9.1</version>
219+
<executions>
220+
<execution>
221+
<phase>prepare-package</phase>
222+
<goals>
223+
<goal>makeAggregateBom</goal>
224+
</goals>
225+
</execution>
226+
</executions>
227+
<configuration>
228+
<!-- https://cyclonedx.org/docs/1.6/json/-->
229+
<schemaVersion>1.6</schemaVersion>
230+
<projectType>application</projectType>
231+
<verbose>false</verbose>
232+
233+
<includeBomSerialNumber>true</includeBomSerialNumber>
234+
<includeCompileScope>true</includeCompileScope>
235+
<includeProvidedScope>true</includeProvidedScope>
236+
<includeRuntimeScope>true</includeRuntimeScope>
237+
<includeSystemScope>true</includeSystemScope>
238+
<includeTestScope>false</includeTestScope>
239+
<includeLicenseText>false</includeLicenseText>
240+
241+
<outputReactorProjects>true</outputReactorProjects>
242+
<outputFormat>all</outputFormat>
243+
<outputName>bom</outputName>
244+
<outputDirectory>${project.build.outputDirectory}/META-INF/sbom</outputDirectory>
245+
</configuration>
246+
</plugin>
215247
<plugin>
216248
<groupId>org.apache.maven.plugins</groupId>
217249
<artifactId>maven-surefire-plugin</artifactId>

0 commit comments

Comments
 (0)