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