You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Sambuddha-Jana (via GitHub)" <gi...@apache.org> on 2026/10/19 16:24:07 UTC

[PR] Improve RequireUpperBoundDeps error message [maven-enforcer]

Sambuddha-Jana opened a new pull request, #1059:
URL: https://github.com/apache/maven-enforcer/pull/1059

   ## Summary
   
   Improve the diagnostic output of `RequireUpperBoundDeps` by including a suggested `<dependencyManagement>` configuration when dependency version conflicts are detected.
   
   ## Motivation
   
   Resolving transitive dependency version conflicts can require users to inspect dependency paths and manually determine which version to manage. Providing an actionable configuration example directly in the error message can make this process more straightforward.
   
   ## Changes
   
   - Identify the highest version among the conflicting dependency nodes.
   - Include a suggested `<dependencyManagement>` XML snippet in the error message.
   - Extend the unit test to verify that the diagnostic includes the conflicting versions and suggested version.
   
   ## Testing
   
   - Targeted `RequireUpperBoundDepsTest`: passed.
   - Full `enforcer-rules` test suite: 288 tests passed, with 0 failures and 0 errors.
   - `git diff --check`: passed.


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Improve RequireUpperBoundDeps error message [maven-enforcer]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #1059:
URL: https://github.com/apache/maven-enforcer/pull/1059#issuecomment-6302117836

   <!-- license-declaration-check -->
   ### ⚠️ License declaration missing
   
   The pull request description must contain at least one of the following lines with a **checked** box (`[x]`):
   
   ```markdown
   - [ ] I hereby declare this contribution to be licensed under the [Apache License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0)
   - [ ] I hereby declare that I have filed an [Apache Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
   ```
   
   This comment will be hidden automatically once the description is fixed.


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Improve RequireUpperBoundDeps error message [maven-enforcer]

Posted by "Sambuddha-Jana (via GitHub)" <gi...@apache.org>.
Sambuddha-Jana commented on PR #1059:
URL: https://github.com/apache/maven-enforcer/pull/1059#issuecomment-6331534475

   Fixed the `require-upper-bound-dependencies-managed_failure` integration test expectation in 17c132b to include the new `<dependencyManagement>` snippet. Ready for workflow approval whenever you have a moment!


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org