You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2023/05/31 08:55:50 UTC

[camel-k-runtime] 02/02: Added SBOM profile

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k-runtime.git

commit db0f7595d60d395255b66df20d924714bfe9bf0f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed May 31 10:51:35 2023 +0200

    Added SBOM profile
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 pom.xml | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/pom.xml b/pom.xml
index d90ab1ef..9ef36038 100644
--- a/pom.xml
+++ b/pom.xml
@@ -88,6 +88,7 @@
         <maven-plugin-api-version>3.6.3</maven-plugin-api-version>
         <maven-plugin-tools-version>3.8.2</maven-plugin-tools-version>
         <maven-shaded-version>3.3.2</maven-shaded-version>
+        <cyclonedx-maven-plugin-version>2.7.9</cyclonedx-maven-plugin-version>
     </properties>
 
      <developers>
@@ -879,6 +880,31 @@
                 <quarkus.native.builder-image>${quarkus-native-builder-image}</quarkus.native.builder-image>
             </properties>
         </profile>
+        <profile>
+            <id>sbom</id>
+            <build>
+            <plugins>
+                <plugin>
+                   <groupId>org.cyclonedx</groupId>
+                   <artifactId>cyclonedx-maven-plugin</artifactId>
+                   <version>${cyclonedx-maven-plugin-version}</version>
+                   <inherited>false</inherited>
+                   <configuration>
+			   <outputName>camel-k-runtime-sbom</outputName>
+			   <outputDirectory>${project.basedir}/camel-k-runtime-sbom/</outputDirectory>
+                   </configuration>
+                   <executions>
+                       <execution>
+                           <phase>package</phase>
+                           <goals>
+                               <goal>makeAggregateBom</goal>
+                           </goals>
+                      </execution>
+                   </executions>
+                </plugin>
+            </plugins>
+            </build>
+        </profile>
     </profiles>
 
 </project>