Interface ArtifactRepository
- All Known Implementing Classes:
DefaultArtifactRepository
,DelegatingLocalArtifactRepository
,LocalArtifactRepository
,MavenArtifactRepository
,UserLocalArtifactRepository
public interface ArtifactRepository
Abstraction of an artifact repository. Artifact repositories can be remote, local, or even build reactor or
IDE workspace.
-
Method Summary
Modifier and TypeMethodDescriptionfindVersions
(Artifact artifact) Finds the versions of the specified artifact that are available in this repository.getId()
getKey()
getProxy()
getUrl()
boolean
Deprecated.boolean
boolean
Indicates whether this repository is backed by actual projects.boolean
Deprecated.pathOfLocalRepositoryMetadata
(ArtifactMetadata metadata, ArtifactRepository repository) pathOfRemoteRepositoryMetadata
(ArtifactMetadata artifactMetadata) void
setAuthentication
(Authentication authentication) void
setBlacklisted
(boolean blackListed) Deprecated.void
setBlocked
(boolean blocked) void
void
setLayout
(ArtifactRepositoryLayout layout) void
setMirroredRepositories
(List<ArtifactRepository> mirroredRepositories) void
void
void
void
-
Method Details
-
pathOf
-
pathOfRemoteRepositoryMetadata
-
pathOfLocalRepositoryMetadata
-
getUrl
String getUrl() -
setUrl
-
getBasedir
String getBasedir() -
getProtocol
String getProtocol() -
getId
String getId() -
setId
-
getSnapshots
ArtifactRepositoryPolicy getSnapshots() -
setSnapshotUpdatePolicy
-
getReleases
ArtifactRepositoryPolicy getReleases() -
setReleaseUpdatePolicy
-
getLayout
ArtifactRepositoryLayout getLayout() -
setLayout
-
getKey
String getKey() -
isUniqueVersion
Deprecated. -
isBlacklisted
Deprecated. -
setBlacklisted
Deprecated. -
isBlocked
boolean isBlocked()- Returns:
- whether the repository is blocked
- Since:
- 3.8.1
-
setBlocked
void setBlocked(boolean blocked) - Parameters:
blocked
- block the repository?- Since:
- 3.8.1
-
find
- Parameters:
artifact
- an artifact- Returns:
- found artifact
- Since:
- 3.0-alpha-3
-
findVersions
Finds the versions of the specified artifact that are available in this repository.- Parameters:
artifact
- The artifact whose available versions should be determined, must not benull
.- Returns:
- The available versions of the artifact or an empty list if none, never
null
. - Since:
- 3.0-alpha-3
-
isProjectAware
boolean isProjectAware()Indicates whether this repository is backed by actual projects. For instance, the build reactor or IDE workspace are examples of such repositories.- Returns:
true
if the repository is backed by actual projects,false
otherwise.- Since:
- 3.0-beta-1
-
setAuthentication
- Parameters:
authentication
- authentication- Since:
- 3.0-alpha-3
-
getAuthentication
Authentication getAuthentication()- Returns:
- repository authentication
- Since:
- 3.0-alpha-3
-
setProxy
- Parameters:
proxy
- proxy- Since:
- 3.0-alpha-3
-
getProxy
Proxy getProxy()- Returns:
- repository proxy
- Since:
- 3.0-alpha-3
-
getMirroredRepositories
List<ArtifactRepository> getMirroredRepositories()- Returns:
- the repositories mirrored by the actual one
- Since:
- 3.0.3
-
setMirroredRepositories
- Parameters:
mirroredRepositories
- the repositories that the actual one mirrors- Since:
- 3.0.3
-