o Restored backward-compat

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@816604 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-09-18 12:42:03 +00:00
parent 5097fd5116
commit 340108611d
2 changed files with 41 additions and 0 deletions

View File

@ -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<ArtifactRepository> remoteRepositories )
throws TransferFailedException, ResourceDoesNotExistException
{
getArtifact( artifact, remoteRepositories, null, false );
}
}

View File

@ -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<ArtifactRepository> remoteRepositories )
throws TransferFailedException, ResourceDoesNotExistException;
}