-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
Documentation for makeBom and makeAggregateBom #13
Comments
I've just hit this. Thanks for the pointer. |
Here are my findings, trying to reduce the build time, keep makeAggregateBom (with its few additional info vs makeBom), and not fail into a submodule:
What is the recommended usage? |
Actually I have the same question as @julien-carsique-sonarsource |
And another question - what is the exact difference between makeBom and makeAggregateBom - could you provide some details in the Readme please ... |
An entry in the |
@mbuchner going by the naming convention used in jacoco maven plugin I could understand that Also going by the documentation here: https://cyclonedx.github.io/cyclonedx-maven-plugin/makeBom-mojo.html and https://cyclonedx.github.io/cyclonedx-maven-plugin/makeAggregateBom-mojo.html there only one addition in
|
I ran into a problem using the goal
makeAggregateBom
and think that I have now solved it, giving the details below. If I got things right then perhaps this might help improve documentation. If I got things wrong, then I need to know that too!I used the
makeAggregateBom
goal as detailed in the documentation and the result was that the goal was executed for every single module in the project. I did notice this, and realized that all my multiple generated BOM files were essentially the same thing (albeit with component ordering seeming to be different every time). This did not cause too big a problem in small projects (and I had no problem grabbing the "parent BOM" in Dependency-Track Plugin config).However, the configuration fell over when applied to large projects because things took too long to run (the following console output shows absolute timestamps):
For a project with 46 modules this was increasing the total job run time by an hour!
My solution was to use the
<inherited>
tag thus:Now, this configuration worked for the project to which it was added... the goal ran once and once only and the resulting BOM was correct.
Additionally, this project parents many other projects. Thus, to those projects, all I had to do was use:
ie, "reset" things so that CycloneDX runs
makeAggregateBom
with inheritance turned off "at the right level" (does that make sense?).One extra thing that I think would be useful to have in documentation is an explanation of
makeBom
andmakeAggregateBom
with a use case or two. Just to get people thinking of possibilities...The text was updated successfully, but these errors were encountered: