Skip to content

Commit

Permalink
Fix maven 3.9 integration
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Mar 15, 2023
1 parent 55716b9 commit 97bc09a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 869 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
import org.apache.maven.lifecycle.LifecycleExecutionException;
import org.apache.maven.model.building.ModelProcessor;
import org.apache.maven.plugin.ExtensionRealmCache;
import org.apache.maven.plugin.MavenPluginManager;
import org.apache.maven.plugin.PluginArtifactsCache;
import org.apache.maven.plugin.PluginRealmCache;
import org.apache.maven.plugin.version.PluginVersionResolver;
Expand Down Expand Up @@ -111,7 +110,6 @@
import org.mvndaemon.mvnd.logging.smart.LoggingExecutionListener;
import org.mvndaemon.mvnd.logging.smart.LoggingOutputStream;
import org.mvndaemon.mvnd.plugin.CachingPluginVersionResolver;
import org.mvndaemon.mvnd.plugin.CliMavenPluginManager;
import org.mvndaemon.mvnd.transfer.DaemonMavenTransferListener;
import org.slf4j.ILoggerFactory;
import org.slf4j.Logger;
Expand Down Expand Up @@ -533,7 +531,6 @@ protected void configure() {
bind(PluginArtifactsCache.class).to(InvalidatingPluginArtifactsCache.class);
bind(PluginRealmCache.class).to(InvalidatingPluginRealmCache.class);
bind(ProjectArtifactsCache.class).to(InvalidatingProjectArtifactsCache.class);
bind(MavenPluginManager.class).to(CliMavenPluginManager.class);
bind(PluginVersionResolver.class).to(CachingPluginVersionResolver.class);
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@
@Priority(10)
public class InvalidatingPluginRealmCache extends DefaultPluginRealmCache {

@FunctionalInterface
public interface PluginRealmSupplier {
CacheRecord load() throws PluginResolutionException, PluginContainerException;
}

protected static class Record implements org.mvndaemon.mvnd.cache.CacheRecord {

final CacheRecord record;
Expand Down Expand Up @@ -85,6 +80,7 @@ public CacheRecord get(Key key) {
return r != null ? r.record : null;
}

@Override
public CacheRecord get(Key key, PluginRealmSupplier supplier)
throws PluginResolutionException, PluginContainerException {
try {
Expand Down
Loading

0 comments on commit 97bc09a

Please sign in to comment.