Skip to content

Stuck when running in offline environment #74

@F242MX

Description

@F242MX

The plugin cyclonedx-maven-plugin seems to require an access to internet in order to fail to download a dependency.

I would summarize the issue in two points :

1 - In an offline environment, the plugin is stuck and prints messages :
"ERROR org.spdx.rdfparser.license.ListedLicenses - I/O error opening Json TOC URL, using local TOC file"
"WARNING org.spdx.rdfparser.license.ListedLicenses - Unable to open SPDX listed license model. Using local file copy for SPDX listed licenses"
These messages are repeated multiple times, but the delay between these error messages rapidly increases.
Eventually, after hours the operation is still not completed because the plugin still tries to access this online resource.

2 - In an online environment, the plugin still fails to access this online ressource but prints rapidly the error messages described in the point 1.
It is then able to fallback to the local copy of the file and the operation completes.

My questions are :
1 - If this online resource (TOC file) is normally required why is it not accessible in an online environment?
2 - Is there a way to pass an option in order to disable the querying of this online file and to directly fallback to the local file so that the operation of the plugin is not stuck anymore in an offline environment?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions