Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cyclonedx maven plugin to create SBOM #1086

Merged
merged 3 commits into from
Nov 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 27 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,38 +22,38 @@
<name>Jim Martino</name>
<email>[email protected]</email>
<organization>The Sheridan Libraries, Johns Hopkins University</organization>
<organizationUrl>https://www.library.jhu.edu/</organizationUrl>
<organizationUrl>https://library.jhu.edu/</organizationUrl>
</developer>
<developer>
<name>Mark Patton</name>
<email>[email protected]</email>
<organization>The Sheridan Libraries, Johns Hopkins University</organization>
<organizationUrl>https://www.library.jhu.edu/</organizationUrl>
<organizationUrl>https://library.jhu.edu/</organizationUrl>
</developer>
<developer>
<name>John Abrahams</name>
<email>[email protected]</email>
<organization>The Sheridan Libraries, Johns Hopkins University</organization>
<organizationUrl>https://www.library.jhu.edu/</organizationUrl>
<organizationUrl>https://library.jhu.edu/</organizationUrl>
</developer>
<developer>
<name>Tim Sanders</name>
<email>[email protected]</email>
<organization>The Sheridan Libraries, Johns Hopkins University</organization>
<organizationUrl>https://www.library.jhu.edu/</organizationUrl>
<organizationUrl>https://library.jhu.edu/</organizationUrl>
</developer>
<developer>
<name>Russ Poetker</name>
<email>[email protected]</email>
<organization>The Sheridan Libraries, Johns Hopkins University</organization>
<organizationUrl>https://www.library.jhu.edu/</organizationUrl>
<organizationUrl>https://library.jhu.edu/</organizationUrl>
</developer>
</developers>

<scm>
<connection>scm:git:git://github.com/eclipse-pass/main.git</connection>
<developerConnection>scm:git:ssh://github.com:eclipse-pass/main.git</developerConnection>
<url>http://github.com/eclipse-pass/main/tree/main</url>
<url>https://github.com/eclipse-pass/main/tree/main</url>
<tag>HEAD</tag>
</scm>
<distributionManagement>
Expand Down Expand Up @@ -81,6 +81,7 @@
<nexus-staging-maven-plugin.version>1.7.0</nexus-staging-maven-plugin.version>
<maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version>
<tidy-maven-plugin.version>1.3.0</tidy-maven-plugin.version>
<cyclonedx-maven-plugin.version>2.8.2</cyclonedx-maven-plugin.version>

<checkstyle.version>8.41.1</checkstyle.version>
<duraspace-codestyle.version>1.1.0</duraspace-codestyle.version>
Expand Down Expand Up @@ -282,6 +283,26 @@
<version>${maven-failsafe-plugin.version}</version>
</plugin>

<plugin>
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
<version>${cyclonedx-maven-plugin.version}</version>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>makeBom</goal>
</goals>
<configuration>
<projectType>application</projectType>
<outputDirectory>${project.build.outputDirectory}/META-INF/sbom</outputDirectory>
<outputFormat>json</outputFormat>
<outputName>application.cdx</outputName>
</configuration>
</execution>
</executions>
</plugin>

</plugins>
</pluginManagement>

Expand Down
Loading