From 80fd8e894537e4d3580004c6505b417554c97de1 Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Wed, 2 Jul 2025 13:24:58 +0200 Subject: [PATCH] Switch to rwlock-local (#2546) This change configures Maven 4 to use rwlock-local locks instead of the default file-based locks for the resolver's named locking mechanism. (cherry picked from commit 61148ed2c43003e5b0d3a993427fcf3818555b1a) --- apache-maven/src/assembly/maven/conf/maven.properties | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apache-maven/src/assembly/maven/conf/maven.properties b/apache-maven/src/assembly/maven/conf/maven.properties index 1e53fa5df399..9e44a96daee8 100644 --- a/apache-maven/src/assembly/maven/conf/maven.properties +++ b/apache-maven/src/assembly/maven/conf/maven.properties @@ -65,3 +65,9 @@ maven.user.extensions = ${maven.user.conf}/extensions.xml # Maven central repository URL. # maven.repo.central = ${env.MAVEN_REPO_CENTRAL:-https://repo.maven.apache.org/maven2} + +# +# Maven Resolver Configuration +# +# Align locking to the same as in Maven 3.9.x +aether.syncContext.named.factory = rwlock-local