Blob Blame History Raw
--- org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/AetherClientResourceFetcher.java
+++ org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/index/nexus/AetherClientResourceFetcher.java
@@ -34,14 +34,14 @@ import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.NullProgressMonitor;
 import org.eclipse.core.runtime.OperationCanceledException;
 
-import org.apache.maven.index.updater.AbstractResourceFetcher;
+import org.apache.maven.index.updater.ResourceFetcher;
 import org.apache.maven.wagon.authentication.AuthenticationInfo;
 import org.apache.maven.wagon.proxy.ProxyInfo;
 
 import org.eclipse.m2e.core.internal.MavenPluginActivator;
 
 
-public class AetherClientResourceFetcher extends AbstractResourceFetcher {
+public class AetherClientResourceFetcher implements ResourceFetcher {
 
   private AetherClient aetherClient;
 
@@ -73,6 +73,15 @@ public class AetherClientResourceFetcher extends AbstractResourceFetcher {
     aetherClient.close();
   }
 
+  public InputStream retrieve( String name )
+      throws IOException, FileNotFoundException {
+
+    String url = baseUrl + "/" + name;
+    Response response = aetherClient.get(url);
+    Closer closer = Closer.create();
+    return closer.register(response.getInputStream());
+  }
+
   public void retrieve(String name, File targetFile) throws IOException, FileNotFoundException {
 
     String url = baseUrl + "/" + name;