Skip to content

Remove DaemonNamedLockFactoryAdapterFactoryImpl#1556

Open
gnodet wants to merge 1 commit intomasterfrom
remove-daemon-named-lock-override
Open

Remove DaemonNamedLockFactoryAdapterFactoryImpl#1556
gnodet wants to merge 1 commit intomasterfrom
remove-daemon-named-lock-override

Conversation

@gnodet
Copy link
Contributor

@gnodet gnodet commented Mar 17, 2026

Summary

  • Remove DaemonNamedLockFactoryAdapterFactoryImpl which overrode Maven Resolver's default named lock factory (file-lock) and name mapper (file-gav). Since resolver 2.0.0, these are already the defaults, making this class a no-op.
  • Eliminates the dependency on resolver internal classes (org.eclipse.aether.internal.impl.synccontext.named.*), which broke when the constructor signature changed in resolver 2.0.14 (new LockingInhibitorFactory parameter).
  • Unblocks the resolver version bump in Bump maven.resolver.version from 2.0.13 to 2.0.16 #1538.

Context

The class was introduced in MNG-7586 when mvnd used resolver 1.9.2, which defaulted to rwlock-local + gav. The override to file-lock + file-gav was necessary then but became redundant when resolver 2.0.0 adopted the same defaults.

Test plan

  • Full build passes (mvnw verify -DskipTests)
  • No behavioral change — the resolver already uses file-lock + file-gav by default

🤖 Generated with Claude Code

This class existed to override Maven Resolver's default named lock
factory and name mapper to file-lock + file-gav. Since resolver 2.0.0,
these are already the defaults, making this override a no-op.

Removing it eliminates the dependency on resolver internal classes
(org.eclipse.aether.internal.impl.synccontext.named.*), which broke
when the constructor signature changed in resolver 2.0.14.

This unblocks upgrading maven-resolver-impl (PR #1538).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant