Skip to content

Commit 919a4db

Browse files
chore(kokoro): fix java8-osx lock acquisition failure (#14812)
## Problem - Parallel (`-T 1C`) Maven installs on slower macOS runners can wait longer than the resolver named-lock timeout (30s by default before Maven 3.9.12) and fail with `Could not acquire lock(s)`. ## Solution - Set `-Daether.syncContext.named.time=900` in `.mvn/maven.config`, matching the Maven 3.9.12+ default, so every Maven invocation in the repo gets the longer lock wait regardless of the Maven version installed on the runner or how scripts set `MAVEN_OPTS`. Resolver locking stays enabled.
1 parent 6c46294 commit 919a4db

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎.mvn/maven.config‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
-Daether.remoteRepositoryFilter.prefixes=false
22
-Daether.remoteRepositoryFilter.groupId=false
3+
-Daether.syncContext.named.time=900

0 commit comments

Comments
 (0)