Skip to content

Dependencies are not exposed to maven central causing build failure #201

@GMishx

Description

@GMishx

Hello there,

At SW360, we are using org.spdx:tools-java:2.0.0 from maven central. However, I cannot see any dependency defined in project's pom.xml on central: https://central.sonatype.com/artifact/org.spdx/tools-java/2.0.0/dependencies

This causes our test cases to fail due to missing classes of various stores. Can you please help us with it?

java.lang.NoClassDefFoundError: org/spdx/spdxRdfStore/RdfStore
	at org.spdx.tools.SpdxToolsHelper.fileTypeToStore(SpdxToolsHelper.java:100)
	at org.spdx.tools.SpdxToolsHelper.deserializeDocumentCompatV2(SpdxToolsHelper.java:211)
	at org.eclipse.sw360.spdx.SpdxBOMImporter.openAsSpdx(SpdxBOMImporter.java:134)

If I add org.spdx:spdx-rdf-store:2.0.0 as dependency of my pom.xml, Java start complaining about java.lang.NoClassDefFoundError: org/spdx/v3jsonldstore/JsonLDStore

Link to PR: eclipse-sw360/sw360#3095

Failing test cases: https://github.com/eclipse-sw360/sw360/actions/runs/14570385211/job/40866454627?pr=3095#step:12:912

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency file

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions