Class DefaultWagonManager
java.lang.Object
org.apache.maven.repository.legacy.DefaultWagonManager
- All Implemented Interfaces:
WagonManager
- Direct Known Subclasses:
DefaultWagonManager
@Component(role=WagonManager.class)
public class DefaultWagonManager
extends Object
implements WagonManager
Manages Wagon related operations in Maven.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getArtifact
(Artifact artifact, List<ArtifactRepository> remoteRepositories, org.apache.maven.wagon.events.TransferListener downloadMonitor, boolean force) void
getArtifact
(Artifact artifact, ArtifactRepository repository, org.apache.maven.wagon.events.TransferListener downloadMonitor, boolean force) void
getArtifactMetadata
(ArtifactMetadata metadata, ArtifactRepository repository, File destination, String checksumPolicy) void
getArtifactMetadataFromDeploymentRepository
(ArtifactMetadata metadata, ArtifactRepository repository, File destination, String checksumPolicy) void
getRemoteFile
(ArtifactRepository repository, File destination, String remotePath, org.apache.maven.wagon.events.TransferListener downloadMonitor, String checksumPolicy, boolean force) org.apache.maven.wagon.Wagon
Deprecated.org.apache.maven.wagon.Wagon
getWagon
(org.apache.maven.wagon.repository.Repository repository) Deprecated.void
putArtifact
(File source, Artifact artifact, ArtifactRepository deploymentRepository, org.apache.maven.wagon.events.TransferListener downloadMonitor) void
putArtifactMetadata
(File source, ArtifactMetadata artifactMetadata, ArtifactRepository repository) void
putRemoteFile
(ArtifactRepository repository, File source, String remotePath, org.apache.maven.wagon.events.TransferListener downloadMonitor)
-
Constructor Details
-
DefaultWagonManager
public DefaultWagonManager()
-
-
Method Details
-
getArtifact
public void getArtifact(Artifact artifact, ArtifactRepository repository, org.apache.maven.wagon.events.TransferListener downloadMonitor, boolean force) throws org.apache.maven.wagon.TransferFailedException, org.apache.maven.wagon.ResourceDoesNotExistException - Specified by:
getArtifact
in interfaceWagonManager
- Throws:
org.apache.maven.wagon.TransferFailedException
org.apache.maven.wagon.ResourceDoesNotExistException
-
getArtifact
public void getArtifact(Artifact artifact, List<ArtifactRepository> remoteRepositories, org.apache.maven.wagon.events.TransferListener downloadMonitor, boolean force) throws org.apache.maven.wagon.TransferFailedException, org.apache.maven.wagon.ResourceDoesNotExistException - Specified by:
getArtifact
in interfaceWagonManager
- Throws:
org.apache.maven.wagon.TransferFailedException
org.apache.maven.wagon.ResourceDoesNotExistException
-
getArtifactMetadata
public void getArtifactMetadata(ArtifactMetadata metadata, ArtifactRepository repository, File destination, String checksumPolicy) throws org.apache.maven.wagon.TransferFailedException, org.apache.maven.wagon.ResourceDoesNotExistException - Specified by:
getArtifactMetadata
in interfaceWagonManager
- Throws:
org.apache.maven.wagon.TransferFailedException
org.apache.maven.wagon.ResourceDoesNotExistException
-
getArtifactMetadataFromDeploymentRepository
public void getArtifactMetadataFromDeploymentRepository(ArtifactMetadata metadata, ArtifactRepository repository, File destination, String checksumPolicy) throws org.apache.maven.wagon.TransferFailedException, org.apache.maven.wagon.ResourceDoesNotExistException - Specified by:
getArtifactMetadataFromDeploymentRepository
in interfaceWagonManager
- Throws:
org.apache.maven.wagon.TransferFailedException
org.apache.maven.wagon.ResourceDoesNotExistException
-
getRemoteFile
public void getRemoteFile(ArtifactRepository repository, File destination, String remotePath, org.apache.maven.wagon.events.TransferListener downloadMonitor, String checksumPolicy, boolean force) throws org.apache.maven.wagon.TransferFailedException, org.apache.maven.wagon.ResourceDoesNotExistException - Specified by:
getRemoteFile
in interfaceWagonManager
- Throws:
org.apache.maven.wagon.TransferFailedException
org.apache.maven.wagon.ResourceDoesNotExistException
-
putArtifact
public void putArtifact(File source, Artifact artifact, ArtifactRepository deploymentRepository, org.apache.maven.wagon.events.TransferListener downloadMonitor) throws org.apache.maven.wagon.TransferFailedException - Specified by:
putArtifact
in interfaceWagonManager
- Throws:
org.apache.maven.wagon.TransferFailedException
-
putArtifactMetadata
public void putArtifactMetadata(File source, ArtifactMetadata artifactMetadata, ArtifactRepository repository) throws org.apache.maven.wagon.TransferFailedException - Specified by:
putArtifactMetadata
in interfaceWagonManager
- Throws:
org.apache.maven.wagon.TransferFailedException
-
putRemoteFile
public void putRemoteFile(ArtifactRepository repository, File source, String remotePath, org.apache.maven.wagon.events.TransferListener downloadMonitor) throws org.apache.maven.wagon.TransferFailedException - Specified by:
putRemoteFile
in interfaceWagonManager
- Throws:
org.apache.maven.wagon.TransferFailedException
-
getWagon
@Deprecated public org.apache.maven.wagon.Wagon getWagon(org.apache.maven.wagon.repository.Repository repository) throws org.apache.maven.wagon.UnsupportedProtocolException Deprecated.- Specified by:
getWagon
in interfaceWagonManager
- Throws:
org.apache.maven.wagon.UnsupportedProtocolException
-
getWagon
@Deprecated public org.apache.maven.wagon.Wagon getWagon(String protocol) throws org.apache.maven.wagon.UnsupportedProtocolException Deprecated.- Specified by:
getWagon
in interfaceWagonManager
- Throws:
org.apache.maven.wagon.UnsupportedProtocolException
-