Skip to content

Commit 3001d78

Browse files
authored
Merge pull request #116 from FasterXML/tatu/2.21/115-fix-cyclonedx-backport-in-2x
Backport #115 in 2.x for 2.21
2 parents 0ce4467 + 9370292 commit 3001d78

2 files changed

Lines changed: 13 additions & 10 deletions

File tree

base/pom.xml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,15 @@ of Jackson: application code should only rely on `jackson-bom`
115115
</goals>
116116
-->
117117
<configuration>
118-
<rules>
118+
<rules>
119119
<!-- Needed both for Replacer plug-in AND for Automatic Module Name -->
120120
<requireProperty>
121121
<property>packageVersion.package</property>
122122
</requireProperty>
123123
<requireProperty>
124124
<property>packageVersion.dir</property>
125125
</requireProperty>
126-
</rules>
126+
</rules>
127127
</configuration>
128128
</execution>
129129
</executions>
@@ -161,22 +161,25 @@ of Jackson: application code should only rely on `jackson-bom`
161161
</execution>
162162
</executions>
163163
</plugin>
164-
<!-- 28-Apr-2025, tatu: Add SBOM generation support [JSTEP-14]
165-
-->
164+
<!-- 28-Apr-2025, tatu: Add SBOM generation support [JSTEP-14] -->
166165
<plugin>
167166
<groupId>org.cyclonedx</groupId>
168167
<artifactId>cyclonedx-maven-plugin</artifactId>
169168
<configuration>
170-
<attach>true</attach>
171169
<classifier>sbom-cyclonedx</classifier>
172-
<skipNotDeployed>true</skipNotDeployed>
170+
<!-- 16-Nov-2025, tatu: Should not skip because new Deploy mechanism
171+
`central-publishing-maven-plugin` NOT consider "deploy" apparently
172+
-->
173+
<skipNotDeployed>false</skipNotDeployed>
173174
</configuration>
175+
<!-- 16-Nov-2025, tatu: We will NOT need "makeAggregateBom" for
176+
any projects since Jackson multi-module projects have
177+
parent poms only, not true aggregation
178+
-->
174179
<executions>
175180
<execution>
176181
<phase>package</phase>
177-
<goals>
178-
<goal>makeAggregateBom</goal>
179-
</goals>
182+
<goals><goal>makeBom</goal></goals>
180183
</execution>
181184
</executions>
182185
</plugin>

release-notes/VERSION-2.x

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Jackson components (core, modules)
1111

1212
2.21.0 (not yet released)
1313

14-
- No changes since 2.20
14+
#115: Fix cycloneDX SBOM generation settings
1515

1616
2.20.1 (30-Oct-2025)
1717

0 commit comments

Comments
 (0)