You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "mcc0nnell (via GitHub)" <gi...@apache.org> on 2026/08/27 03:08:21 UTC
[PR] [#360] Publish SBOM on ASF releases [maven-apache-parent]
mcc0nnell opened a new pull request, #597:
URL: https://github.com/apache/maven-apache-parent/pull/597
Fixes #360
Publish CycloneDX SBOMs for ASF Maven releases by configuring cyclonedx-maven-plugin in the existing apache-release profile.
This:
* uses CycloneDX Maven Plugin 2.9.3
* runs makeAggregateBom during package
* excludes test scope using the plugin defaults
* attaches both JSON and XML SBOMs with the cyclonedx classifier, so they are published by the normal Maven deploy flow
* affects release builds only; ordinary builds are unchanged
This follows the approach already used by apache/maven-parent for MPOM-346, extending the capability to projects inheriting directly from the ASF parent POM.
The parent POM documentation is updated to describe the generated release artifacts.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#360] Publish SBOM on ASF releases [maven-apache-parent]
Posted by "mcc0nnell (via GitHub)" <gi...@apache.org>.
mcc0nnell closed pull request #597: [#360] Publish SBOM on ASF releases
URL: https://github.com/apache/maven-apache-parent/pull/597
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#360] Publish SBOM on ASF releases [maven-apache-parent]
Posted by "slawekjaranowski (via GitHub)" <gi...@apache.org>.
slawekjaranowski commented on PR #597:
URL: https://github.com/apache/maven-apache-parent/pull/597#issuecomment-5551343541
We also have
- https://cwiki.apache.org/confluence/spaces/COMDEV/pages/217391474/SBOM
- https://cwiki.apache.org/confluence/spaces/SECURITY/pages/287607444/SBOM+Software+Bill+of+Materials
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#360] Publish SBOM on ASF releases [maven-apache-parent]
Posted by "mcc0nnell (via GitHub)" <gi...@apache.org>.
mcc0nnell commented on PR #597:
URL: https://github.com/apache/maven-apache-parent/pull/597#issuecomment-5553415360
Thanks — I think the cleanest scope here is ATR integration rather than treating the current CycloneDX 1.6 aggregate as the final SBOM publication model.
The branch is intentionally narrowed to push-to-atr: JSON only, one aggregate for the reactor, child-project opt-out, and explicit SBOM/checksum/signature upload for ATR. I agree that broader/default publication is a separate question and is better revisited with CycloneDX 1.7 / isExternal support and evidence from real ATR releases.
One detail I do not want to overclaim: makeAggregateBom attaches the SBOM by default, so with release:perform -Ppush-to-atr it may still participate in the normal deploy lifecycle. We should make that boundary explicit before describing this as ATR-only publication.
The intended scope is narrower: when a project opts into push-to-atr, preserve the generated SBOM as release evidence that ATR can ingest and evaluate. This PR does not need to claim that the current aggregate SBOM is a complete artifact-level dependency model or settle ASF-wide default publication.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#360] Publish SBOM on ASF releases [maven-apache-parent]
Posted by "slawekjaranowski (via GitHub)" <gi...@apache.org>.
slawekjaranowski commented on PR #597:
URL: https://github.com/apache/maven-apache-parent/pull/597#issuecomment-5512244430
Today I hope that ART will consume it ...
- we can generate only json format
- we can skip generating in all project modules (set outputReactorProjects = false)
- make allow to disable in child project
- optionally skip attache to deployment
Now I see that is used in:
https://github.com/search?q=%22%3CartifactId%3Ecyclonedx-maven-plugin%3C%2FartifactId%3E%22+language%3A%22Maven+POM%22+org%3Aapache&type=code
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#360] Publish SBOM on ASF releases [maven-apache-parent]
Posted by "slawekjaranowski (via GitHub)" <gi...@apache.org>.
slawekjaranowski commented on PR #597:
URL: https://github.com/apache/maven-apache-parent/pull/597#issuecomment-5532020769
> I would prefer to try adding change to one or two close-to-be-released-via-atr projects before enforce it on all projects
I'm working with ART on better SBOM support, and dit some of test release with SBOM
you can look at https://github.com/apache/tooling-trusted-releases/issues/1544
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#360] Publish SBOM on ASF releases [maven-apache-parent]
Posted by "hboutemy (via GitHub)" <gi...@apache.org>.
hboutemy commented on PR #597:
URL: https://github.com/apache/maven-apache-parent/pull/597#issuecomment-5511493753
FYI, we did it in Maven for a few years to test and learn: https://github.com/apache/maven-parent/blame/master/pom.xml#L1406
result is that aggregate SBOM makes people happy "because we have a SBOM" (in Maven Central), but the result is not really usable for anything useful
I won't explain in details why it's not useful, but focus on the solution: with the release of CycloneDX 1.7 ( few months ago) and its `isExternal` field, we start having the info that will make such SBOMs with CycloneDX Maven Plugin really useful
= https://github.com/CycloneDX/cyclonedx-maven-plugin/pull/696
once this CycloneDX 1.7 will be out, I'll be full interested into publishing these SBOMs everywhere
with current CycloneDX 1.6 plugin 2.9.x, we're taking the wrong route to me, adding generated files to the sizze of Maven Central without real benefit
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#360] Publish SBOM on ASF releases [maven-apache-parent]
Posted by "slachiewicz (via GitHub)" <gi...@apache.org>.
slachiewicz commented on PR #597:
URL: https://github.com/apache/maven-apache-parent/pull/597#issuecomment-5516803221
I would prefer to try adding change to one or two close-to-be-released-via-atr projects before enforce it on all projects
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#360] Publish SBOM on ASF releases [maven-apache-parent]
Posted by "mcc0nnell (via GitHub)" <gi...@apache.org>.
mcc0nnell commented on PR #597:
URL: https://github.com/apache/maven-apache-parent/pull/597#issuecomment-5514993175
That makes sense.
I’ll move this to push-to-atr and keep it out of the normal Maven Central deployment path for now.
I can also trim it to JSON only, set outputReactorProjects=false, and make it easy for child projects to disable.
Then once CycloneDX 1.7 / isExternal support is in the plugin, we can revisit broader publication.
That does seem like the cleaner path.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#360] Publish SBOM on ASF releases [maven-apache-parent]
Posted by "ppkarwasz (via GitHub)" <gi...@apache.org>.
ppkarwasz commented on PR #597:
URL: https://github.com/apache/maven-apache-parent/pull/597#issuecomment-5557612818
I am also opposed to this PR, because this parent POM produces **only** a source archive, and I have no idea what kind of SBOM should be produced for it.
The `cyclonedx-maven-plugin` produces `build` SBOMs for the binary artifacts of a build. It **does** have limitations, but it takes into account the **properties** and **active profiles** used in the build, and produces a result that is correct for that single build run.
It is not meant to describe a source archive, for which:
- multiple **profiles** can change the outcome of a build,
- dependency versions can be **ranges**. This is rare, but it is allowed.
For a `pre-build` / source SBOM I would expect to see different information:
- Vendored source code, with the copyright holder and license of that code.
- Bundled JavaScript: most source archives also contain the sources for the website.
- Dependencies that are conditional on properties and profiles.
- **Curated** license information: is a dependency `Apache-2.0 OR LGPL-2.1-only` or `Apache-2.0 AND LGPL-2.1-only`? In the latter case, can I produce a build that omits the LGPL-licensed part?
I honestly find licensing tedious, so I have not thought these aspects through in detail.
@jerpelea has integrated SBOM-generation in Apache NuttX, together with the ability for users to opt out at build time of the handful of source files that are **not** `Apache-2.0` licensed. The generated SBOM is a `build` SBOM, but since all source files are tagged with a `SPDX-Licence-Identifier`, this could be reused to generate a `pre-build` SBOM. This is something I would like to see for Java projects too, but it should be generated by the `apache-rat-plugin` rather than by the `cyclonedx-maven-plugin`.
To summarize, a source archive SBOM should contain:
- The files in the source tree that were **not** authored by the project: `mvnw`, JavaScript for the website, vendored code. I have an idea how this could be done.
- Dependencies for all profiles, which at this point are necessarily **external**, so that users can see the license implications.
This is a lot of work, and it is mostly useful for companies that rebuild our Java code (AWS, Google, Red Hat) and either use it internally or ship it to their clients. The majority of users will rely on the `build` SBOM of what we publish to Maven Central, and for now I think they should configure a `cyclonedx-maven-plugin` execution themselves, so they “own” each configuration option.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#360] Publish SBOM on ASF releases [maven-apache-parent]
Posted by "slawekjaranowski (via GitHub)" <gi...@apache.org>.
slawekjaranowski commented on PR #597:
URL: https://github.com/apache/maven-apache-parent/pull/597#issuecomment-5512292558
or only add in push-to-atr profile with deployment to atr
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#360] Publish SBOM on ASF releases [maven-apache-parent]
Posted by "slawekjaranowski (via GitHub)" <gi...@apache.org>.
slawekjaranowski commented on PR #597:
URL: https://github.com/apache/maven-apache-parent/pull/597#issuecomment-5551107403
@ppkarwasz what do you think about publishing SBOM as default
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org