Skip to content

Add the option to retrieve remote licenses for projects defined in a …#2409

Merged
spiffcs merged 1 commit intoanchore:mainfrom
coheigea:coheigea/maven-license-pom
Dec 12, 2023
Merged

Add the option to retrieve remote licenses for projects defined in a …#2409
spiffcs merged 1 commit intoanchore:mainfrom
coheigea:coheigea/maven-license-pom

Conversation

@coheigea
Copy link
Copy Markdown
Contributor

@coheigea coheigea commented Dec 8, 2023

…maven pom

Similar to work I did to remotely retrieve licenses from Maven Central for dependencies in jars, this adds the same functionality when you're scanning a pom.xml instead. I moved the maven utilities from archive_parser into a separate file to maintain a cleaner separation.

You can reproduce with the project referenced on this issue #2266
Once PR is merged I'll look at getting the versions from the parent poms as well.

@coheigea coheigea force-pushed the coheigea/maven-license-pom branch 2 times, most recently from 7387c0b to 39e288d Compare December 8, 2023 14:04
…maven pom

Signed-off-by: Colm O hEigeartaigh <coheigea@apache.org>
@coheigea coheigea force-pushed the coheigea/maven-license-pom branch from 39e288d to 2e40750 Compare December 8, 2023 14:10
@spiffcs
Copy link
Copy Markdown
Contributor

spiffcs commented Dec 12, 2023

You're so awesome - thank you so much @coheigea for the improvements on this part of the code

@spiffcs spiffcs merged commit e789e07 into anchore:main Dec 12, 2023
@coheigea coheigea deleted the coheigea/maven-license-pom branch December 13, 2023 05:47
@willmurphyscode willmurphyscode added the enhancement New feature or request label Dec 21, 2023
GijsCalis pushed a commit to GijsCalis/syft that referenced this pull request Feb 19, 2024
… in a maven pom (anchore#2409)

Signed-off-by: Colm O hEigeartaigh <coheigea@apache.org>
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