Skip to content

Commit

Permalink
Flatten the simple bom (#5141)
Browse files Browse the repository at this point in the history
  • Loading branch information
D074360 authored Oct 9, 2024
1 parent 20b7eff commit 4153672
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/mavenBuild.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ func runMakeBOMGoal(config *mavenBuildOptions, utils maven.Utils) error {

goals := []string{"org.cyclonedx:cyclonedx-maven-plugin:2.7.8:makeBom"}

if config.Flatten {
goals = append(goals, "flatten:flatten")
defines = append(defines, "-Dflatten.mode=resolveCiFriendliesOnly", "-DupdatePomFile=true")
}

return executeMavenGoals(config, utils, flags, goals, defines)
}

Expand Down

0 comments on commit 4153672

Please sign in to comment.