devesh95official commented on issue #1967: URL: https://github.com/apache/maven-mvnd/issues/1967#issuecomment-7261610295
Hi, I'd like to take this one. Both uses are in `CacheKey` in `InvalidatingProjectArtifactsCache.java` (lines 92-93), where the direct dependency artifacts go into the key as strings. I'm not sure `getArtifacts()` works as the swap there though. As far as I can tell the key is built before the resolution it caches, so at that point `getArtifacts()` is either empty or left over from an earlier resolution, and the key could stop changing when a dependency changes. So my plan is to build the same set from `project.getDependencies()` instead (groupId:artifactId:type:classifier:version:scope for each), since that's the effective model with managed versions already filled in. Then `mvn verify` plus the ITs. Does that sound right to you, or would you rather match whatever maven-core's own `DefaultProjectArtifactsCache` ends up doing for the same call? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
