1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.artifact.resolver;
20
21 import java.util.List;
22 import java.util.Map;
23 import java.util.Set;
24 import org.apache.maven.artifact.Artifact;
25 import org.apache.maven.artifact.metadata.ArtifactMetadataSource;
26 import org.apache.maven.artifact.repository.ArtifactRepository;
27 import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
28 import org.apache.maven.wagon.events.TransferListener;
29
30
31
32
33
34 public interface ArtifactResolver {
35
36 ArtifactResolutionResult resolve(ArtifactResolutionRequest request);
37
38
39
40 @Deprecated
41 String ROLE = ArtifactResolver.class.getName();
42
43
44 @Deprecated
45 ArtifactResolutionResult resolveTransitively(
46 Set<Artifact> artifacts,
47 Artifact originatingArtifact,
48 ArtifactRepository localRepository,
49 List<ArtifactRepository> remoteRepositories,
50 ArtifactMetadataSource source,
51 ArtifactFilter filter)
52 throws ArtifactResolutionException, ArtifactNotFoundException;
53
54
55 @Deprecated
56 ArtifactResolutionResult resolveTransitively(
57 Set<Artifact> artifacts,
58 Artifact originatingArtifact,
59 Map<String, Artifact> managedVersions,
60 ArtifactRepository localRepository,
61 List<ArtifactRepository> remoteRepositories,
62 ArtifactMetadataSource source)
63 throws ArtifactResolutionException, ArtifactNotFoundException;
64
65
66 @Deprecated
67 ArtifactResolutionResult resolveTransitively(
68 Set<Artifact> artifacts,
69 Artifact originatingArtifact,
70 Map<String, Artifact> managedVersions,
71 ArtifactRepository localRepository,
72 List<ArtifactRepository> remoteRepositories,
73 ArtifactMetadataSource source,
74 ArtifactFilter filter)
75 throws ArtifactResolutionException, ArtifactNotFoundException;
76
77
78 @Deprecated
79 ArtifactResolutionResult resolveTransitively(
80 Set<Artifact> artifacts,
81 Artifact originatingArtifact,
82 List<ArtifactRepository> remoteRepositories,
83 ArtifactRepository localRepository,
84 ArtifactMetadataSource source)
85 throws ArtifactResolutionException, ArtifactNotFoundException;
86
87 @Deprecated
88 @SuppressWarnings("checkstyle:parameternumber")
89 ArtifactResolutionResult resolveTransitively(
90 Set<Artifact> artifacts,
91 Artifact originatingArtifact,
92 Map<String, Artifact> managedVersions,
93 ArtifactRepository localRepository,
94 List<ArtifactRepository> remoteRepositories,
95 ArtifactMetadataSource source,
96 ArtifactFilter filter,
97 List<ResolutionListener> listeners)
98 throws ArtifactResolutionException, ArtifactNotFoundException;
99
100 @Deprecated
101 ArtifactResolutionResult resolveTransitively(
102 Set<Artifact> artifacts,
103 Artifact originatingArtifact,
104 List<ArtifactRepository> remoteRepositories,
105 ArtifactRepository localRepository,
106 ArtifactMetadataSource source,
107 List<ResolutionListener> listeners)
108 throws ArtifactResolutionException, ArtifactNotFoundException;
109
110
111 @Deprecated
112 void resolve(Artifact artifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository)
113 throws ArtifactResolutionException, ArtifactNotFoundException;
114
115
116 @Deprecated
117 void resolve(
118 Artifact artifact,
119 List<ArtifactRepository> remoteRepositories,
120 ArtifactRepository localRepository,
121 TransferListener downloadMonitor)
122 throws ArtifactResolutionException, ArtifactNotFoundException;
123
124
125 @Deprecated
126 void resolveAlways(
127 Artifact artifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository)
128 throws ArtifactResolutionException, ArtifactNotFoundException;
129 }