This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch mvnd-1.x
in repository https://gitbox.apache.org/repos/asf/maven-mvnd.git


The following commit(s) were added to refs/heads/mvnd-1.x by this push:
     new 4cab042d Port of Maven 3.9.x fix (#1432)
4cab042d is described below

commit 4cab042dba0f9af3d5d9fcb98a60429076424846
Author: Tamas Cservenak <[email protected]>
AuthorDate: Mon Nov 24 09:46:27 2025 +0100

    Port of Maven 3.9.x fix (#1432)
    
    The change from https://github.com/apache/maven/pull/11082
    must be ported over, due copied MavenCli.
---
 daemon/src/main/java/org/apache/maven/cli/DaemonMavenCli.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/daemon/src/main/java/org/apache/maven/cli/DaemonMavenCli.java 
b/daemon/src/main/java/org/apache/maven/cli/DaemonMavenCli.java
index c2e36821..ba568479 100644
--- a/daemon/src/main/java/org/apache/maven/cli/DaemonMavenCli.java
+++ b/daemon/src/main/java/org/apache/maven/cli/DaemonMavenCli.java
@@ -101,6 +101,7 @@ import 
org.codehaus.plexus.component.repository.exception.ComponentLookupExcepti
 import org.codehaus.plexus.interpolation.AbstractValueSource;
 import org.codehaus.plexus.interpolation.InterpolationException;
 import org.codehaus.plexus.interpolation.StringSearchInterpolator;
+import org.eclipse.aether.DefaultRepositoryCache;
 import org.eclipse.aether.transfer.TransferListener;
 import org.mvndaemon.mvnd.cache.invalidating.InvalidatingExtensionRealmCache;
 import org.mvndaemon.mvnd.cache.invalidating.InvalidatingPluginArtifactsCache;
@@ -839,6 +840,7 @@ public class DaemonMavenCli implements DaemonCli {
         commands(cliRequest);
 
         MavenExecutionRequest request = 
executionRequestPopulator.populateDefaults(cliRequest.request);
+        request.setRepositoryCache(new DefaultRepositoryCache()); // reset 
caches
 
         eventSpyDispatcher.onEvent(request);
 

Reply via email to