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