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

Maven coordinates resolved incorrectly #165

Open
bpfoster opened this issue Jan 17, 2023 · 2 comments
Open

Maven coordinates resolved incorrectly #165

bpfoster opened this issue Jan 17, 2023 · 2 comments

Comments

@bpfoster
Copy link

bpfoster commented Jan 17, 2023

I have a project that (transitively) depends on org.springframework.data:spring-data-commons:jar:3.0.0.

Running trivy fs on my pom file appears to incorrectly resolve its maven coordinates:

DEBUG	Resolving org.springframework.data.build:spring-data-commons:3.0.0...
DEBUG	org.springframework.data.build:spring-data-commons:3.0.0 was not found in local/remote repositories

spring-data-commons' parent is org.springframework.data.build:spring-data-parent:3.0.0, so it appears that the logic that's applying the parent inheritance is incorrectly assigning the child groupId to the parent's groupId.

@mrjonstrong
Copy link

@bpfoster I am wondering does this relate to #157?

@bpfoster
Copy link
Author

bpfoster commented Feb 2, 2023

I'm not totally sure but that does seem like a different issue. #157 speaks to dependencies declared in parent/child poms via properties. This seems to be an issue in resolving the GAV of the pom itself in a parent/child scenario.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants