1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.repository.legacy;
20
21 import java.io.File;
22 import java.util.List;
23
24 import org.apache.maven.artifact.Artifact;
25 import org.apache.maven.artifact.metadata.ArtifactMetadata;
26 import org.apache.maven.artifact.repository.ArtifactRepository;
27 import org.apache.maven.wagon.ResourceDoesNotExistException;
28 import org.apache.maven.wagon.TransferFailedException;
29 import org.apache.maven.wagon.UnsupportedProtocolException;
30 import org.apache.maven.wagon.Wagon;
31 import org.apache.maven.wagon.events.TransferListener;
32 import org.apache.maven.wagon.repository.Repository;
33
34
35
36
37 public interface WagonManager {
38 @Deprecated
39 Wagon getWagon(String protocol) throws UnsupportedProtocolException;
40
41 @Deprecated
42 Wagon getWagon(Repository repository) throws UnsupportedProtocolException, WagonConfigurationException;
43
44
45
46
47 void getArtifact(Artifact artifact, ArtifactRepository repository, TransferListener transferListener, boolean force)
48 throws TransferFailedException, ResourceDoesNotExistException;
49
50 void getArtifact(
51 Artifact artifact,
52 List<ArtifactRepository> remoteRepositories,
53 TransferListener transferListener,
54 boolean force)
55 throws TransferFailedException, ResourceDoesNotExistException;
56
57 void getRemoteFile(
58 ArtifactRepository repository,
59 File destination,
60 String remotePath,
61 TransferListener downloadMonitor,
62 String checksumPolicy,
63 boolean force)
64 throws TransferFailedException, ResourceDoesNotExistException;
65
66 void getArtifactMetadata(
67 ArtifactMetadata metadata, ArtifactRepository remoteRepository, File destination, String checksumPolicy)
68 throws TransferFailedException, ResourceDoesNotExistException;
69
70 void getArtifactMetadataFromDeploymentRepository(
71 ArtifactMetadata metadata, ArtifactRepository remoteRepository, File file, String checksumPolicyWarn)
72 throws TransferFailedException, ResourceDoesNotExistException;
73
74
75
76
77 void putArtifact(
78 File source, Artifact artifact, ArtifactRepository deploymentRepository, TransferListener downloadMonitor)
79 throws TransferFailedException;
80
81 void putRemoteFile(ArtifactRepository repository, File source, String remotePath, TransferListener downloadMonitor)
82 throws TransferFailedException;
83
84 void putArtifactMetadata(File source, ArtifactMetadata artifactMetadata, ArtifactRepository repository)
85 throws TransferFailedException;
86 }