Git Product home page Git Product logo

Comments (7)

goneall avatar goneall commented on May 28, 2024

Can this by due to the system proxy not being support? If so, would it maybe make sense to add proxy support e.g. via https://github.com/MarkusBernhardt/proxy-vole?

Short answer is yes.

The code responsible generating this error is in the Spdx-Java-Library ListedLicenses.java file.

If the License List data is not accessible via the internet, it will fall back to a local cache of the license list which may or may not be up to date. So, the code should still work even if this error is generated. You should see a warning following the error that the local cache is being used. If you don't see the warning, then there is an additional issue we should fix.

It would definitely be an improvement to have the library automatically detect and use network proxy settings.

@sschuberth Feel free to create a PR - otherwise, I can add this to my list of todo items for a future release.

from spdx-java-library.

goneall avatar goneall commented on May 28, 2024

Transferring the issue to the SPDX library.

from spdx-java-library.

sschuberth avatar sschuberth commented on May 28, 2024

You should see a warning following the error that the local cache is being used. If you don't see the warning, then there is an additional issue we should fix.

I didn't see such a warning, and also no mention of success, which is why I didn't even bother to look for an output file... but now that I did, I see that the YAML output was indeed generated!

@sschuberth Feel free to create a PR

I wanted to, but I had trouble getting the project to build in IntelliJ IDEA. For some reason quite a few dependencies could not be found.

from spdx-java-library.

goneall avatar goneall commented on May 28, 2024

I didn't see such a warning, and also no mention of success, which is why I didn't even bother to look for an output file... but now that I did, I see that the YAML output was indeed generated!

Definitely a different issue. Maybe a classpath issue getting access to the resources files?

I do test this scenario on my local dev environment by running the unit tests disconnected from the internet - but I recall problems in the past which are classpath related.

I wanted to, but I had trouble getting the project to build in IntelliJ IDEA. For some reason quite a few dependencies could not be found.

Interesting - You might try just the Java library and see if that builds. Much much less dependencies. I use Eclipse myself for the SPDX projects.

from spdx-java-library.

goneall avatar goneall commented on May 28, 2024

@sschuberth I'm working on a new release and started looking at using proxy-vole. I'm concerned about the number of dependencies this library will bring in, especially delight-nashorn-sandbox.

I'll work on updating the logging so the messages are a bit more accurate, but at this point I'm thinking we don't add proxy support unless we can find a lighter weight dependency. BTW - the number one concern I've heard from the previous version of the Java libraries is the large number of dependencies which are now moved to a separate project - tools-Java, so you can include the library without all the baggage.

from spdx-java-library.

sschuberth avatar sschuberth commented on May 28, 2024

especially delight-nashorn-sandbox.

Yeah, that's probably for PAC file paring, which is might be overkill anyway.

from spdx-java-library.

goneall avatar goneall commented on May 28, 2024

I updated the error message to be more descriptive in PR #88

Unable to access the most current listed licenses from https://spdx.org/licenses - using locally cached licenses: [cause]

from spdx-java-library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.