1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.artifact.repository;
20
21 import java.util.List;
22
23 import org.apache.maven.artifact.Artifact;
24 import org.apache.maven.artifact.metadata.ArtifactMetadata;
25 import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
26 import org.apache.maven.repository.Proxy;
27
28
29
30
31
32 public interface ArtifactRepository {
33 String pathOf(Artifact artifact);
34
35 String pathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata);
36
37 String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository);
38
39 String getUrl();
40
41 void setUrl(String url);
42
43 String getBasedir();
44
45 String getProtocol();
46
47 String getId();
48
49 void setId(String id);
50
51 ArtifactRepositoryPolicy getSnapshots();
52
53 void setSnapshotUpdatePolicy(ArtifactRepositoryPolicy policy);
54
55 ArtifactRepositoryPolicy getReleases();
56
57 void setReleaseUpdatePolicy(ArtifactRepositoryPolicy policy);
58
59 ArtifactRepositoryLayout getLayout();
60
61 void setLayout(ArtifactRepositoryLayout layout);
62
63 String getKey();
64
65 @Deprecated
66 boolean isUniqueVersion();
67
68 @Deprecated
69 boolean isBlacklisted();
70
71 @Deprecated
72 void setBlacklisted(boolean blackListed);
73
74
75 boolean isBlocked();
76
77
78 void setBlocked(boolean blocked);
79
80
81
82
83
84
85
86
87
88 Artifact find(Artifact artifact);
89
90
91
92
93
94
95
96
97 List<String> findVersions(Artifact artifact);
98
99
100
101
102
103
104
105
106 boolean isProjectAware();
107
108
109
110
111 void setAuthentication(Authentication authentication);
112
113
114
115 Authentication getAuthentication();
116
117
118
119
120 void setProxy(Proxy proxy);
121
122
123
124 Proxy getProxy();
125
126
127
128
129
130 List<ArtifactRepository> getMirroredRepositories();
131
132
133
134
135
136 void setMirroredRepositories(List<ArtifactRepository> mirroredRepositories);
137 }