gnodet commented on issue #11391:
URL: https://github.com/apache/maven/issues/11391#issuecomment-3531627492

   Yes, but this needs a model change, a change in the resolver API to add 
support for this new field, and the field to be taken into account the resolver 
strategies, either only highest, but maybe others, with unknown side effects.
   
   Hence my proposal to just add a different strategy, or modify highest to 
just also affect direct dependencies.  This would allow the switch with just a 
single property in `./mvn/...properties` anyway.
   
   It really comes down to whether switching specific dependencies is a real 
use case or not. Given the problem is not know when the project is created, and 
mainly appears later when upgrading dependencies, I'm not sure why a user would 
choose to not follow the strategy for a given set of dependencies.  If the user 
did switch to the new or updated `highest` strategy, and want to force a given 
dependency version, I think he can always choose to use a closed range in order 
to enforce this version. Though if the project is a library to be consumed by 
other projects, this will bring the constraints down to the consumer. 


-- 
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]

Reply via email to