CycloneDX / CycloneDX/cyclonedx-gradle-plugin
Problem with XMLWriter
- Dominant language
- Java
- Stars
- 239
- Forks
- 102
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 11
Description
We are trying to generate BOMs for our Android projects and I am having a hell of a time. After finally figuring out all configs that I have to skip (still not sure why though...), the plugin seems to run but dies when trying to write the BOM with no real information:
> Task :cyclonedxBom FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':cyclonedxBom'.
> An error occurred executing org.cyclonedx.gradle.CycloneDxTask_Decorated
Running the task with '--stacktrace' give me a little more information, but I have no clue how to fix this, or if it is even something I can fix on my side (I'm not really familiar with Gradle, more of a Maven-man myself, but am tasked with generating the BOMs):
----- snipped a large part of the stacktrace -----
Caused by: org.cyclonedx.exception.GeneratorException: com.fasterxml.jackson.core.JsonGenerationException: Underlying Stax XMLStreamWriter (of type shadow.nexus.shadow.com.ctc.wstx.sw.RepairingNsStreamWriter) does not implement Stax2 API natively and is missing method 'writeRaw': this breaks functionality such as indentation that relies on it. You need to upgrade to using compliant Stax implementation like Woodstox or Aalto
Can I fix this myself, or is this something in the plugin (dependency?) or can I somehow configure this in eg my build.gradle?
Contributor guide
Research direction
The payload names the cyclonedxBom Gradle task and a Jackson/Stax2 XML writer failure; begin by reproducing it with --stacktrace and inspecting the plugin's XML-writer dependencies and build.gradle configuration. Done means the Android BOM task completes and writes the BOM without the XMLStreamWriter error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100