mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-11-28 02:11:31 +08:00
Port of Maven 3.9.x fix (#1432)
Some checks failed
Early Access / Default build (without GraalVM) (push) Has been cancelled
Early Access / Build with GraalVM on macos-13 (push) Has been cancelled
Early Access / Build with GraalVM on macos-latest (push) Has been cancelled
Early Access / Build with GraalVM on ubuntu-latest (push) Has been cancelled
Early Access / Build with GraalVM on windows-latest (push) Has been cancelled
Some checks failed
Early Access / Default build (without GraalVM) (push) Has been cancelled
Early Access / Build with GraalVM on macos-13 (push) Has been cancelled
Early Access / Build with GraalVM on macos-latest (push) Has been cancelled
Early Access / Build with GraalVM on ubuntu-latest (push) Has been cancelled
Early Access / Build with GraalVM on windows-latest (push) Has been cancelled
The change from https://github.com/apache/maven/pull/11082 must be ported over, due copied MavenCli.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user