You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2022/06/24 11:01:31 UTC

[GitHub] [maven] cstamas opened a new pull request, #762: [EXPERIMENT] Resolver locking mode

cstamas opened a new pull request, #762:
URL: https://github.com/apache/maven/pull/762

   Requires https://github.com/apache/maven-resolver/pull/188
   
   The idea is similar as with resolver transport: add simple(er) switches to maven to control resolver locking aspect. Just as with transport (setting priority), setting proper locking may be cumbersome, as it requires lock factory but also name mapper settings, and there are even pairings that are must (like for file). Instead of relying directly on https://maven.apache.org/resolver/configuration.html here, again as in case of transport, offer a "higher" level settings from Maven itself:
   * file
   * local
   * hazelcast
   * redisson
   
   That provides OOTB "experience" to end users (naturally  in case of latter two needed configuration and remote services are assumed but not checked for!).
   
   Hence, `mvn -Dmaven.resolver.locking=file ...` would make Maven use file locking. 
   


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


[GitHub] [maven] gnodet commented on pull request #762: [EXPERIMENT] Resolver locking mode

Posted by GitBox <gi...@apache.org>.
gnodet commented on PR #762:
URL: https://github.com/apache/maven/pull/762#issuecomment-1168302480

   @cstamas what's the difference between `default` and `auto` ?
   Is `auto` a placeholder to add some automatic detection of the filesystem if possible and switch between file and ipc (both could be setup without any additional external requirements) ?


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


[GitHub] [maven] cstamas commented on pull request #762: [EXPERIMENT] Resolver locking mode

Posted by GitBox <gi...@apache.org>.
cstamas commented on PR #762:
URL: https://github.com/apache/maven/pull/762#issuecomment-1168422138

   > @cstamas what's the difference between `default` and `auto` ? Is `auto` a placeholder to add some automatic detection of the filesystem if possible and switch between file and ipc (both could be setup without any additional external requirements) ?
   
   Just like in https://github.com/apache/maven/pull/710 the "default" means user provided no input (but Maven does need to configure to achieve it), while "auto" means we let resolver and it's own mechanism (as opposed to session factory) to figure out.
   
   So presence of "auto" is a must (in case of both, transport and locking) as if someone throws in some resolver extension, that may override/use priority on components, to retain "standard" resolver behaviour, to not have maven interfere.


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