The generate-licenses.py script is raising a warning on two io.confluent:kafka-* artifacts and crashes on com.googlecode.juniversalchardet:juniversalchardet
+ ./scripts/generate-licenses.py ('XXX unknown', 'io.confluent:kafka-schema-registry-client') ('XXX unknown', 'io.confluent:kafka-avro-serializer') Traceback (most recent call last): File "./scripts/generate-licenses.py", line 224, in <module> main() File "./scripts/generate-licenses.py", line 221, in main dump(licenses, versions, descriptions, gas, whitelist) File "./scripts/generate-licenses.py", line 195, in dump blacks.append(format_line(ga, licenses, versions, descriptions)) File "./scripts/generate-licenses.py", line 206, in format_line galist = licences[ga] KeyError: 'com.googlecode.juniversalchardet:juniversalchardet' Build step 'Execute shell' marked build as failure
| | | \- org.nuxeo.lib.stream:nuxeo-stream:jar:10.3-SNAPSHOT:compile | | | |- (...) | | | +- io.confluent:kafka-avro-serializer:jar:5.0.0:compile | | | \- io.confluent:kafka-schema-registry-client:jar:5.0.0:compile +- com.github.librepdf:openpdf:jar:1.2.0:compile | +- com.googlecode.juniversalchardet:juniversalchardet:jar:1.0.3:compile
TODO:
- Fix the error, the script must not crash
- Qualify the cause then either fix or create a ticket asking the culprit to fix
- Document
- Complete https://github.com/nuxeo/nuxeo/blob/master/scripts/README.md
- Document methods (see with Florent Guillaume)
- Explain the "XXX unknown" output
Optionally related tickets: NXP-25546, NXP-25654 (update accordingly after analysis)