dhruv9b opened a new pull request, #1022: URL: https://github.com/apache/maven-enforcer/pull/1022
## Description Improve the `RequireUpperBoundDeps` error message when a dependency version is managed to a different version. Previously, managed dependencies were displayed like: `org.example:childA:1.0.0 (managed) <-- org.example:childA:2.0.0` The meaning of the arrow notation is not immediately clear, making it difficult to determine which version was selected and which version was requested. This changes the message to: `org.example:childA:1.0.0 (managed; requested org.example:childA:2.0.0)` This makes the relationship between the managed version and the requested version explicit. ### Changes * Updated `RequireUpperBoundDeps` to use clearer managed-version error message wording. * Added a regression test covering the managed-version case. * Extended `DependencyNodeBuilder` to create dependency nodes with a premanaged version for testing. * Added documentation explaining the `managed; requested` notation. ### Testing * `mvn verify` — passed * `mvn -Prun-its verify` — passed Fixes #937 --- Following this checklist to help us incorporate your contribution quickly and easily: * [x] Your pull request should address just one issue, without pulling in other changes. * [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. * [x] Each commit in the pull request should have a meaningful subject line and body. * [x] Write unit tests that match behavioral changes, where the tests fail if the changes to the runtime are not applied. * [x] Run `mvn verify` to make sure basic checks pass. * [ ] You have run the integration tests successfully (`mvn -Prun-its verify`). * [x] I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004. * [ ] In any other case, please file 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]
