Comments (7)
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.
Transferring the issue to the SPDX library.
from spdx-java-library.
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.
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.
@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.
especially delight-nashorn-sandbox.
Yeah, that's probably for PAC file paring, which is might be overkill anyway.
from spdx-java-library.
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)
- Update POM file to use release plugin HOT 1
- Enhancement: caching version of org.spdx.storage.listedlicense.SpdxListedLicenseWebStore and associated classes HOT 27
- tools-java should issue an error for absolute FileName HOT 5
- Need to update optional fields handling for cases with filesAnalyzed=true HOT 2
- Do we have a release schedule? HOT 4
- Performance enhancement: only download and parse license & exception JSON files once
- Exceptions aren't always passed on, making troubleshooting difficult
- Update CI to flag any new quality issues
- LicenseCompareHelper: EPL-2.0 license text published by Eclipse Foundation not recognised HOT 3
- LicenseCompareHelper: BSD-2-Clause license text not recognised HOT 2
- In need of a canonical way to add license texts for licenseRefs / Maybe bugged? HOT 4
- LicenseCompareHelper: GPL-2.0 license text not recognised HOT 2
- Question HOT 2
- Refactor nonOptionalTextToPatterns HOT 2
- Verify error when license exceptions are used in an expression in LicenseConcluded but not in LicenseInfoInFile HOT 2
- Official Apache-1.1 license text is not being matched correctly by LicenseCompareHelper.matchingStandardLicenseIdsWithinText() HOT 1
- Official GPL-1.0 license text is not being matched correctly by LicenseCompareHelper.isTextStandardLicense() HOT 1
- Potential enhancement: LicenseCompareHelper.isTextStandardLicense().getDifferenceMessage() should sort by line then column
- Official CC-BY-4.0 license text is not being matched correctly by LicenseCompareHelper.isTextStandardLicense() HOT 3
- Inconsistent behaviour between LicenseCompareHelper methods when called with official MIT license text HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spdx-java-library.