[MNG-7237] Improve the accessibility of using the new named locks features
- Dominant language
- Java
- Stars
- 5.3k
- Forks
- 3.1k
- Avg merge
- 20h 42m
- Merged PRs (30d)
- 297
Description
**[Jacques-Etienne Beaudet](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=loginatnine)** opened **[MNG-7237](https://issues.apache.org/jira/browse/MNG-7237?redirect=false)** and commented
Currently, if you want to use named locks with Redisson for proper distributed locking of a maven repo, you have to download a bunch of jars and modify the m2.conf as described [here](https://maven.apache.org/resolver/maven-resolver-named-locks-redisson/index.html).
While this works fine, it is to me very cumbersome and will most likely hinder the adoption of the feature since it's not "built-in" maven nor it's a plugin you can just add to your project. Ideally, I wish we could just do
```java
mvn verify -T1C --named-lock-factory redisson-rwlock --named-lock-factory-config optional/config-file.yml
```
but as [Michael Osipov](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=michael-o) mentioned [here](https://github.com/apache/maven-resolver/pull/122#discussion_r703332941), it seems like it's not possible. This issue is then to discuss about what's possible to improve the accessibility of this great feature that allows better usage of CI instances running multiple builds with a shared repo.
The options that Michael mentioned in the thread are the following :
1. Already add the config line in m2.conf by default
2. Provide an additional binary distro based on a profile.
---
No further details from [MNG-7237](https://issues.apache.org/jira/browse/MNG-7237?redirect=false)
Contributor guide
Assessment
This issue has not been assessed yet.