From 62d9b01af0da969b9ffadd8c7c2e91ace47efecf Mon Sep 17 00:00:00 2001 From: Robert McConnell Date: Wed, 2 Sep 2026 15:23:31 -0400 Subject: [PATCH 1/2] [#360] Publish SBOM with ATR releases --- pom.xml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/pom.xml b/pom.xml index c6667ecb..c3f8a471 100644 --- a/pom.xml +++ b/pom.xml @@ -121,6 +121,7 @@ under the License. 0.18 1.0.0-alpha-1 1.11 + 2.9.3 3.2.0 3.8.0 3.6.0 @@ -368,6 +369,11 @@ under the License. atr-maven-plugin ${version.atr-maven-plugin} + + org.cyclonedx + cyclonedx-maven-plugin + ${version.cyclonedx-maven-plugin} + @@ -542,6 +548,43 @@ under the License. push-to-atr + + org.cyclonedx + cyclonedx-maven-plugin + + json + false + + + + + makeAggregateBom + + package + + + + + net.nicoulaj.maven.plugins + checksum-maven-plugin + + + cyclonedx-checksum + + artifacts + + post-integration-test + + + SHA-512 + + cyclonedx + true + false + + + + org.apache.tooling atr-maven-plugin @@ -562,6 +605,9 @@ under the License. ${project.build.directory}/${project.artifactId}-${project.version}-source-release.${atr-release-type} ${project.build.directory}/${project.artifactId}-${project.version}-source-release.${atr-release-type}.sha512 ${project.build.directory}/${project.artifactId}-${project.version}-source-release.${atr-release-type}.asc + ${project.build.directory}/${project.artifactId}-${project.version}-cyclonedx.json + ${project.build.directory}/${project.artifactId}-${project.version}-cyclonedx.json.sha512 + ${project.build.directory}/${project.artifactId}-${project.version}-cyclonedx.json.asc From c1453c9c4b6bdb313ba49f72273f2f7a3d59cb9e Mon Sep 17 00:00:00 2001 From: Robert McConnell Date: Wed, 2 Sep 2026 15:24:02 -0400 Subject: [PATCH 2/2] [#360] Document ATR-scoped SBOM publication --- docs/src/site/markdown/index.md.vm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/src/site/markdown/index.md.vm b/docs/src/site/markdown/index.md.vm index 16ca9701..3b17b158 100644 --- a/docs/src/site/markdown/index.md.vm +++ b/docs/src/site/markdown/index.md.vm @@ -130,6 +130,8 @@ The `push-to-atr` Profile Since release 39, `push-to-atr` profile is provided to help upload built release content to [Apache Tooling](https://tooling.apache.org/)'s Trusted Releases platform, and compose the release using [`atr-maven-plugin`](https://apache.github.io/tooling-atr-maven-plugin/). +When this profile is active, an aggregate CycloneDX SBOM is generated during the `package` phase. Only JSON is generated and `outputReactorProjects` is disabled, so multi-module builds produce one aggregate SBOM rather than one SBOM per module. The SBOM, its SHA-512 checksum, and its signature are uploaded to ATR alongside the source release artifacts. Projects can disable SBOM generation with `-Dcyclonedx.skip=true`. + See ATR's [tutorial](https://release-test.apache.org/tutorial) for a quick introduction: check existing [committes in ATR](https://release-test.apache.org/committees), you may have to create a project or improve its configuration, for example using [`project` entry in `.asf.yaml`](https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#project). Once project is ready, start the release in ATR before doing the staging release with Maven with `mvn release:perform -Ppush-to-atr`. Remember that: