CycloneDX / cdxgen

Creates CycloneDX Bill of Materials (BOM) for your projects from source and container images. Supports many languages and package managers. Integrate in your CI/CD pipeline with automatic submission to Dependency Track server. GPT: https://chatgpt.com/g/g-673bfeb4037481919be8a2cd1bf868d2-cdxgen
https://cyclonedx.github.io/cdxgen/
Apache License 2.0
588 stars 156 forks source link

cdxgen hangs on sbt dependencyList #96

Open spirovskib opened 2 years ago

spirovskib commented 2 years ago

I'm running cdxgen -t java -o bom.xml in a local Scala repo.

The program starts but then gets stuck on Executing sbt dependencyList in /repos/repo using plugins /var/folders/0q/pk4zgnm14f51k4scf_q_v76h0000gn/T/cdxsbtg-9UA3Pi

A bom.xml is never generated. I'm running on MacOS 12.1, using sbt 1.5.7

The java version is

java --version
openjdk 11.0.12 2021-07-20
OpenJDK Runtime Environment Temurin-11.0.12+7 (build 11.0.12+7)
OpenJDK 64-Bit Server VM Temurin-11.0.12+7 (build 11.0.12+7, mixed mode)
prabhu commented 2 years ago

@spirovskib sbt is known to be quite slow. Could you perform sbt clean stage before running cdxgen and see if it speeds up?