arturobernalg opened a new pull request, #1067: URL: https://github.com/apache/maven-enforcer/pull/1067
Fixes #532. DependencyVersionMap.constructKey(Artifact) grouped dependencies for the convergence check by groupId:artifactId alone. Two artifacts that share groupId:artifactId but differ by classifier or extension -- for example platform-specific native jars published under the same groupId:artifactId with a different classifier per OS/arch -- are different files that can legitimately carry different versions, but got bucketed into the same convergence group and reported as a version conflict. constructKey now includes classifier and extension, matching how Maven identifies a specific artifact. Added DependencyConvergenceTest covering both cases: different classifiers with different versions no longer conflict, while a real same-classifier version mismatch still does. enforcer-rules tests, checkstyle and spotless all pass. To make clear that you license your contribution under the Apache License Version 2.0, January 2004, check one of the following: - [x] I hereby declare this contribution to be licensed under the Apache License Version 2.0, January 2004 - [ ] I hereby declare that I have filed an Apache Individual Contributor License Agreement. -- 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]
