
=== mvn -DskipTests package (default: Spring Boot parent wiring) ===
[INFO] --- cyclonedx:2.9.3:makeAggregateBom (default) ---
[INFO] CycloneDX: Creating BOM version 1.6 with 59 component(s)
[INFO] CycloneDX: Writing and validating BOM (JSON): target/classes/META-INF/sbom/application.cdx.json
[INFO] --- jar:3.5.1:jar (default-jar) ---
[INFO] --- spring-boot:4.2.0:repackage (repackage) ---
jar contains: META-INF/sbom/application.cdx.json

=== Inside target/classes/META-INF/sbom/application.cdx.json ===
bomFormat      : CycloneDX
specVersion    : 1.6
subject        : com.ankurm.ci:gitea-actions-demo:1.0.0 (application)
components     : 59
by scope       : {'required': 59}
all have purl  : True
all have hash  : True
spring-boot       : pkg:maven/org.springframework.boot/spring-boot@4.2.0?type=jar
postgresql        : pkg:maven/org.postgresql/postgresql@42.7.14?type=jar
tomcat-embed-core : pkg:maven/org.apache.tomcat.embed/tomcat-embed-core@11.0.27?type=jar
jackson-databind  : pkg:maven/tools.jackson.core/jackson-databind@3.1.8?type=jar
testcontainers    : (not in SBOM)
dependency edges: 60

=== The mistake: -Plate-sbom (re-declares the execution with phase=package) ===
[INFO] --- jar:3.5.1:jar (default-jar) ---
[INFO] --- spring-boot:4.2.0:repackage (repackage) ---
[INFO] --- cyclonedx:2.9.3:makeAggregateBom (default) ---
jar contains: 
(empty above = the SBOM is not in the jar)
