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 @Deprecated
38 public interface WagonManager {
39 @Deprecated
40 Wagon getWagon(String protocol) throws UnsupportedProtocolException;
41
42 @Deprecated
43 Wagon getWagon(Repository repository) throws UnsupportedProtocolException, WagonConfigurationException;
44
45
46
47
48 void getArtifact(Artifact artifact, ArtifactRepository repository, TransferListener transferListener, boolean force)
49 throws TransferFailedException, ResourceDoesNotExistException;
50
51 void getArtifact(
52 Artifact artifact,
53 List<ArtifactRepository> remoteRepositories,
54 TransferListener transferListener,
55 boolean force)
56 throws TransferFailedException, ResourceDoesNotExistException;
57
58 void getRemoteFile(
59 ArtifactRepository repository,
60 File destination,
61 String remotePath,
62 TransferListener downloadMonitor,
63 String checksumPolicy,
64 boolean force)
65 throws TransferFailedException, ResourceDoesNotExistException;
66
67 void getArtifactMetadata(
68 ArtifactMetadata metadata, ArtifactRepository remoteRepository, File destination, String checksumPolicy)
69 throws TransferFailedException, ResourceDoesNotExistException;
70
71 void getArtifactMetadataFromDeploymentRepository(
72 ArtifactMetadata metadata, ArtifactRepository remoteRepository, File file, String checksumPolicyWarn)
73 throws TransferFailedException, ResourceDoesNotExistException;
74
75
76
77
78 void putArtifact(
79 File source, Artifact artifact, ArtifactRepository deploymentRepository, TransferListener downloadMonitor)
80 throws TransferFailedException;
81
82 void putRemoteFile(ArtifactRepository repository, File source, String remotePath, TransferListener downloadMonitor)
83 throws TransferFailedException;
84
85 void putArtifactMetadata(File source, ArtifactMetadata artifactMetadata, ArtifactRepository repository)
86 throws TransferFailedException;
87 }