Skip to content

Commit 72901c9

Browse files
authored
JSTEP-14: generate and publish SBOMs (#755)
1 parent 14d658a commit 72901c9

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

pom.xml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,11 @@ alternative support for serializing POJOs as XML and deserializing XML as POJOs.
171171
<!-- Inherited from oss-base. Generate PackageVersion.java.-->
172172
<groupId>com.google.code.maven-replacer-plugin</groupId>
173173
<artifactId>replacer</artifactId>
174-
<executions>
175-
<execution>
176-
<id>process-packageVersion</id>
177-
<phase>generate-sources</phase>
178-
</execution>
179-
</executions>
174+
</plugin>
175+
<!-- 29-Apr-2025, tatu: SBOM generation [JSTEP-14] -->
176+
<plugin>
177+
<groupId>org.cyclonedx</groupId>
178+
<artifactId>cyclonedx-maven-plugin</artifactId>
180179
</plugin>
181180
<!-- 20-Mar-2019, tatu: use Moditect for JDK9+ module info inclusion -->
182181
<plugin>

release-notes/VERSION-2.x

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Project: jackson-dataformat-xml
66

77
2.20.0 (not yet released)
88

9-
-
9+
- Generate SBOMs [JSTEP-14]
1010

1111
2.19.0-rc2 (24-Apr-2025)
1212

src/main/java/com/fasterxml/jackson/dataformat/xml/ser/XmlSerializerProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ protected void _serializeUnwrappedObjectNode(ToXmlGenerator xgen, Object value,
315315
JsonSerializer<Object> ser) throws IOException
316316
{
317317
ObjectNode root = (ObjectNode) value;
318-
Map.Entry<String, JsonNode> entry = root.fields().next();
318+
Map.Entry<String, JsonNode> entry = root.properties().iterator().next();
319319
final JsonNode newRoot = entry.getValue();
320320

321321
// No namespace associated with JsonNode:

0 commit comments

Comments
 (0)