feat: add support for detecting packages in JARs
Description
Support for detection of packages present in a JAR has been added. It can be enabeld via the DetectContainedPackages config flag.
- Fixes #4187
Type of change
- [x] New feature (non-breaking change which adds functionality)
- [ ] Documentation (updates the documentation)
Checklist:
- [x] I have added unit tests that cover changed behavior
- [x] I have tested my code in common scenarios and confirmed there are no regressions
- [x] I have added comments to my code, particularly in hard-to-understand sections
@wagoodman regarding the opt-in cataloger configuration, is there anything required besides https://github.com/anchore/syft/pull/4199/files#diff-88a14afdc0253cb83b54f7ebb8960a48aecc90a2c9288be359c15f599c38ea1fR267 https://github.com/anchore/syft/pull/4199/files ?
Ahh Looks like this one got hit with some conflicts from some other Java work we had in flight. Let me see if I can help fix these up this week to get this across the line.
@spiffcs all merge conflicts should have been resolved 🙂
@spiffcs is there anything blocking this PR from being reviewed? 😅