-
-
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
Exclude Projects not working as expected when running goal 'makeAggregateBom' #578
Comments
are your trying to exclude a dependency? said another way: are you really building a Maven multi-module project that combines multiple groupIds, including |
Yes, it is a multi-module maven project. Say the core parent pom has the group id as event-hub and all the child modules follow the same parent group. The above example shared in my post was an example group-id, it can be several other dependencies (client libraries) which I want to exclude when running cyclonedx goal. |
I don't want to exclude the whole project, then it will ignore or exclude all the dependencies. |
oh, I did not expect that one: you have a private multi-module project and want to ship a unique aggregate SBOM that does not list the different (private) modules but only the aggregation of their dependencies? we should probably write a sample with 1 parent and 3 modules, and a few dependencies (not many, because we need to keep it simple) one question on you use case: are you expecting to do this one day with configuration in pom.xml and run with |
@hboutemy i have a custom maven goal which internally calls the cyclonedx goals with maven executor plugin where I pass the different parameters. |
When I running maven command line with mvn clean org.cyclonedx:cyclonedx-maven-plugin:2.8.1:makeAggregateBom using -DexcludeGroupId or -DexcludeArtifactId doesn't seem to ignore the required artifacts from the final generated SBOMs.
-DexcludeGroupId=com.eventhub didn't ignore the artifact and still available in released SBOM.
The text was updated successfully, but these errors were encountered: