Interface ArtifactRepository
- All Known Implementing Classes:
DefaultArtifactRepository
,DelegatingLocalArtifactRepository
,LocalArtifactRepository
,MavenArtifactRepository
,UserLocalArtifactRepository
Deprecated.
Avoid use of this type, if you need access to local repository use repository system classes instead.
Abstraction of an artifact repository. Artifact repositories can be remote, local, or even build reactor or
IDE workspace.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.findVersions
(Artifact artifact) Deprecated.Finds the versions of the specified artifact that are available in this repository.Deprecated.Deprecated.getId()
Deprecated.getKey()
Deprecated.Deprecated.Deprecated.Deprecated.getProxy()
Deprecated.Deprecated.Deprecated.getUrl()
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.Indicates whether this repository is backed by actual projects.boolean
Deprecated.Deprecated.pathOfLocalRepositoryMetadata
(ArtifactMetadata metadata, ArtifactRepository repository) Deprecated.pathOfRemoteRepositoryMetadata
(ArtifactMetadata artifactMetadata) Deprecated.void
setAuthentication
(Authentication authentication) Deprecated.void
setBlacklisted
(boolean blackListed) Deprecated.void
setBlocked
(boolean blocked) Deprecated.void
Deprecated.void
setLayout
(ArtifactRepositoryLayout layout) Deprecated.void
setMirroredRepositories
(List<ArtifactRepository> mirroredRepositories) Deprecated.void
Deprecated.void
Deprecated.void
Deprecated.void
Deprecated.
-
Method Details
-
pathOf
Deprecated. -
pathOfRemoteRepositoryMetadata
Deprecated. -
pathOfLocalRepositoryMetadata
Deprecated. -
getUrl
String getUrl()Deprecated. -
setUrl
Deprecated. -
getBasedir
String getBasedir()Deprecated. -
getProtocol
String getProtocol()Deprecated. -
getId
String getId()Deprecated. -
setId
Deprecated. -
getSnapshots
ArtifactRepositoryPolicy getSnapshots()Deprecated. -
setSnapshotUpdatePolicy
Deprecated. -
getReleases
ArtifactRepositoryPolicy getReleases()Deprecated. -
setReleaseUpdatePolicy
Deprecated. -
getLayout
ArtifactRepositoryLayout getLayout()Deprecated. -
setLayout
Deprecated. -
getKey
String getKey()Deprecated. -
isUniqueVersion
Deprecated. -
isBlacklisted
Deprecated. -
setBlacklisted
Deprecated. -
isBlocked
boolean isBlocked()Deprecated.- Returns:
- whether the repository is blocked
- Since:
- 3.8.1
-
setBlocked
void setBlocked(boolean blocked) Deprecated.- Parameters:
blocked
- block the repository?- Since:
- 3.8.1
-
find
Deprecated.- Parameters:
artifact
- an artifact- Returns:
- found artifact
- Since:
- 3.0-alpha-3
-
findVersions
Deprecated.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()Deprecated.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
Deprecated.- Parameters:
authentication
- authentication- Since:
- 3.0-alpha-3
-
getAuthentication
Authentication getAuthentication()Deprecated.- Returns:
- repository authentication
- Since:
- 3.0-alpha-3
-
setProxy
Deprecated.- Parameters:
proxy
- proxy- Since:
- 3.0-alpha-3
-
getProxy
Proxy getProxy()Deprecated.- Returns:
- repository proxy
- Since:
- 3.0-alpha-3
-
getMirroredRepositories
List<ArtifactRepository> getMirroredRepositories()Deprecated.- Returns:
- the repositories mirrored by the actual one
- Since:
- 3.0.3
-
setMirroredRepositories
Deprecated.- Parameters:
mirroredRepositories
- the repositories that the actual one mirrors- Since:
- 3.0.3
-