diff --git a/maven-compat/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java b/maven-compat/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java index 9233d7435a..fa672b5f96 100644 --- a/maven-compat/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java +++ b/maven-compat/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java @@ -19,7 +19,14 @@ package org.apache.maven.artifact.manager; * under the License. */ +import java.util.List; + +import org.apache.maven.artifact.Artifact; +import org.apache.maven.artifact.repository.ArtifactRepository; +import org.apache.maven.wagon.ResourceDoesNotExistException; +import org.apache.maven.wagon.TransferFailedException; import org.apache.maven.wagon.authentication.AuthenticationInfo; +import org.apache.maven.wagon.proxy.ProxyInfo; import org.codehaus.plexus.component.annotations.Component; @Component(role=WagonManager.class) @@ -33,4 +40,22 @@ public class DefaultWagonManager // empty one to prevent NPE return new AuthenticationInfo(); } + + public ProxyInfo getProxy( String protocol ) + { + return null; + } + + public void getArtifact( Artifact artifact, ArtifactRepository repository ) + throws TransferFailedException, ResourceDoesNotExistException + { + getArtifact( artifact, repository, null, false ); + } + + public void getArtifact( Artifact artifact, List remoteRepositories ) + throws TransferFailedException, ResourceDoesNotExistException + { + getArtifact( artifact, remoteRepositories, null, false ); + } + } diff --git a/maven-compat/src/main/java/org/apache/maven/artifact/manager/WagonManager.java b/maven-compat/src/main/java/org/apache/maven/artifact/manager/WagonManager.java index 69ddf4640a..599ed1497a 100644 --- a/maven-compat/src/main/java/org/apache/maven/artifact/manager/WagonManager.java +++ b/maven-compat/src/main/java/org/apache/maven/artifact/manager/WagonManager.java @@ -1,6 +1,13 @@ package org.apache.maven.artifact.manager; +import java.util.List; + +import org.apache.maven.artifact.Artifact; +import org.apache.maven.artifact.repository.ArtifactRepository; +import org.apache.maven.wagon.ResourceDoesNotExistException; +import org.apache.maven.wagon.TransferFailedException; import org.apache.maven.wagon.authentication.AuthenticationInfo; +import org.apache.maven.wagon.proxy.ProxyInfo; /* * Licensed to the Apache Software Foundation (ASF) under one @@ -37,4 +44,13 @@ public interface WagonManager * the default implementation will return an empty AuthenticationInfo */ AuthenticationInfo getAuthenticationInfo( String id ); + + ProxyInfo getProxy( String protocol ); + + void getArtifact( Artifact artifact, ArtifactRepository repository ) + throws TransferFailedException, ResourceDoesNotExistException; + + void getArtifact( Artifact artifact, List remoteRepositories ) + throws TransferFailedException, ResourceDoesNotExistException; + }