aboutcode-org / aboutcode-org/scancode-toolkit

Not scanning jars

Open
#4,881 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
2.6k
Forks
791
Avg merge
1d 12h
Merged PRs (30d)
5

Description

### Description

I was under the impression, this tool also scans jar? For me, it just reports them as "file", and that's it. No error, warning or anything hinting on something not working as it is supposed to.

### How To Reproduce

`scancode -lpcv --json output.json --html output.html \eclipse\workspace-2025\....`

```
Setup plugin: scan:packages...
Setup plugin: scan:licenses...
Setup plugin: scan:copyrights...
Setup plugin: output:html...
Setup plugin: output:json...
Collect file inventory...
Scan files for: packages, licenses, copyrights with 11 process(es)...
Scanned: D:\eclipse\workspace-2025\....\.jpackage.xml
Scanned: D:\eclipse\workspace-2025\....\.jpackage.xml
Scanned: D:\eclipse\workspace-2025\....\commons-lang3-3.20.0.jar
Scanned: D:\eclipse\workspace-2025\....\commons-lang3-3.20.0.jar
Scanned: D:\eclipse\workspace-2025\....\commons-logging-1.2.jar
Scanned: D:\eclipse\workspace-2025\....\commons-logging-1.2.jar
Scanned: D:\eclipse\workspace-2025\....\error_prone_annotations-2.33.0.jar
Scanned: D:\eclipse\workspace-2025\....\error_prone_annotations-2.33.0.jar
Scanned: D:\eclipse\workspace-2025\....\failureaccess-1.0.2.jar
Scanned: D:\eclipse\workspace-2025\....\failureaccess-1.0.2.jar
Scanned: D:\eclipse\workspace-2025\....\flexmark-0.64.8.jar
Scanned: D:\eclipse\workspace-2025\....\flexmark-0.64.8.jar
....
....
Scanned: D:\eclipse\workspace-2025\....\cli.cfg
Scanned: D:\eclipse\workspace-2025\....\cli.cfg
Filter scans...
Filter scan: packages...
Filter scan: licenses...
Filter scan: copyrights...
Save scan results...
Save scan results as: html...
Save scan results as: json...
Scanning done.
Summary: packages, licenses, copyrights with 11 process(es)
Errors count: 0
Scan Speed: 9.40 files/sec.
Initial counts: 104 resource(s): 103 file(s) and 1 directorie(s)
Final counts: 104 resource(s): 103 file(s) and 1 directorie(s)
Timings:
scan_start: 2026-04-05T034440.390755
scan_end: 2026-04-05T034453.515504
setup_scan:licenses: 2.06s
setup: 2.06s
scan:packages: 0.22s
scan: 10.96s
output:html: 0.10s
output:json: 0.10s
output: 0.21s
total: 13.33s
Removing temporary files...done.
```

```
{
"headers": [
{
"tool_name": "scancode-toolkit",
"tool_version": "32.5.0",
"options": {
"input": [
"\\eclipse\\workspace-2025\\.....\\"
],
"--copyright": true,
"--html": "output.html",
"--json": "output.json",
"--license": true,
"--package": true,
"--verbose": true
},
"notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.",
"start_timestamp": "2026-04-05T032412.639551",
"end_timestamp": "2026-04-05T032425.381514",
"output_format_version": "4.1.0",
"duration": 12.741991519927979,
"message": null,
"errors": [],
"warnings": [],
"extra_data": {
"system_environment": {
"operating_system": "win",
"cpu_architecture": "64",
"platform": "Windows-10-10.0.19045-SP0",
"platform_version": "10.0.19045",
"python_version": "3.14.3 | packaged by Anaconda, Inc. | (main, Feb 24 2026, 22:45:56) [MSC v.1942 64 bit (AMD64)]"
},
"spdx_license_list_version": "3.27",
"files_count": 103
}
}
],
"packages": [],
"dependencies": [],
"license_detections": [],
"files": [
.....
{
"path": "app/pdfbox-2.0.24.jar",
"type": "file",
"package_data": [
{
"type": "jar",
"namespace": null,
"name": null,
"version": null,
"qualifiers": {},
"subpath": null,
"primary_language": null,
"description": null,
"release_date": null,
"parties": [],
"keywords": [],
"homepage_url": null,
"download_url": null,
"size": null,
"sha1": null,
"md5": null,
"sha256": null,
"sha512": null,
"bug_tracking_url": null,
"code_view_url": null,
"vcs_url": null,
"copyright": null,
"holder": null,
"declared_license_expression": null,
"declared_license_expression_spdx": null,
"license_detections": [],
"other_license_expression": null,
"other_license_expression_spdx": null,
"other_license_detections": [],
"extracted_license_statement": null,
"notice_text": null,
"source_packages": [],
"file_references": [],
"is_private": false,
"is_virtual": false,
"extra_data": {},
"dependencies": [],
"repository_homepage_url": null,
"repository_download_url": null,
"api_data_url": null,
"datasource_id": "java_jar",
"purl": null
}
],
"for_packages": [],
"detected_license_expression": null,
"detected_license_expression_spdx": null,
"license_detections": [],
"license_clues": [],
"percentage_of_license_text": 0,
"copyrights": [],
"holders": [],
"authors": [],
"scan_errors": []
},
.....
```

### System configuration

Windows 10, I tried v32.5.0/python3.14, v32.5.0/python3.13, and v32.4.1/python3.13, releases archives

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.