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
23 import java.util.List;
24
25 import org.apache.maven.artifact.Artifact;
26 import org.apache.maven.artifact.metadata.ArtifactMetadata;
27 import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
28 import org.apache.maven.repository.Proxy;
29
30 public interface ArtifactRepository
31 {
32 String pathOf( Artifact artifact );
33
34 String pathOfRemoteRepositoryMetadata( ArtifactMetadata artifactMetadata );
35
36 String pathOfLocalRepositoryMetadata( ArtifactMetadata metadata, ArtifactRepository repository );
37
38 String getUrl();
39
40 void setUrl( String url );
41
42 String getBasedir();
43
44 String getProtocol();
45
46 String getId();
47
48 void setId( String id );
49
50 ArtifactRepositoryPolicy getSnapshots();
51
52 void setSnapshotUpdatePolicy( ArtifactRepositoryPolicy policy );
53
54 ArtifactRepositoryPolicy getReleases();
55
56 void setReleaseUpdatePolicy( ArtifactRepositoryPolicy policy );
57
58 ArtifactRepositoryLayout getLayout();
59
60 void setLayout( ArtifactRepositoryLayout layout );
61
62 String getKey();
63
64 @Deprecated
65 boolean isUniqueVersion();
66
67 @Deprecated
68 boolean isBlacklisted();
69
70 @Deprecated
71 void setBlacklisted( boolean blackListed );
72
73
74
75
76 Artifact find( Artifact artifact );
77
78
79
80
81
82
83
84 List<String> findVersions( Artifact artifact );
85
86
87
88
89
90
91
92 boolean isProjectAware();
93
94 void setAuthentication( Authentication authentication );
95 Authentication getAuthentication();
96
97 void setProxy( Proxy proxy );
98 Proxy getProxy();
99
100 List<ArtifactRepository> getMirroredRepositories();
101 void setMirroredRepositories( List<ArtifactRepository> mirroredRepositories );
102
103 }