Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fall back to searching maven central using groupIDFromJavaMetadata #2295

Merged
merged 1 commit into from
Nov 11, 2023

Conversation

coheigea
Copy link
Contributor

@coheigea coheigea commented Nov 7, 2023

If a Java archive doesn't contain either a pom.xml or pom.properties or a license file, Syft doesn't find an associated license. This PR extends the functionality to search in maven central, this time using groupIDFromJavaMetadata, which can find the right group Id / artifact Id using information stored in the Java Manifest file.

With this PR Syft can find licenses for:

@coheigea coheigea force-pushed the coheigea/groupIDFromJavaMetadata branch from 4c362ee to d21cef7 Compare November 7, 2023 05:32
@coheigea coheigea marked this pull request as draft November 8, 2023 10:06
@coheigea
Copy link
Contributor Author

coheigea commented Nov 8, 2023

Waiting on #2302 to be merged first, I might tweak this as a result.

@coheigea coheigea force-pushed the coheigea/groupIDFromJavaMetadata branch from d21cef7 to 5db27bb Compare November 9, 2023 06:26
@coheigea coheigea marked this pull request as ready for review November 9, 2023 06:40
@coheigea
Copy link
Contributor Author

coheigea commented Nov 9, 2023

Ready for review @spiffcs

@spiffcs spiffcs merged commit 7ccbadf into anchore:main Nov 11, 2023
10 checks passed
@coheigea coheigea deleted the coheigea/groupIDFromJavaMetadata branch November 13, 2023 06:55
@wagoodman wagoodman added the enhancement New feature or request label Nov 16, 2023
GijsCalis pushed a commit to GijsCalis/syft that referenced this pull request Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants