Class LegacyLocalRepositoryManager.ArtifactRepositoryAdapter
java.lang.Object
org.apache.maven.artifact.repository.LegacyLocalRepositoryManager.ArtifactRepositoryAdapter
- All Implemented Interfaces:
ArtifactRepository
- Enclosing class:
- LegacyLocalRepositoryManager
static class LegacyLocalRepositoryManager.ArtifactRepositoryAdapter
extends Object
implements ArtifactRepository
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.eclipse.aether.repository.RemoteRepository
-
Constructor Summary
ConstructorsConstructorDescriptionArtifactRepositoryAdapter
(org.eclipse.aether.repository.RemoteRepository repository) -
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
boolean
boolean
Indicates whether this repository is backed by actual projects.boolean
pathOfLocalRepositoryMetadata
(ArtifactMetadata metadata, ArtifactRepository repository) pathOfRemoteRepositoryMetadata
(ArtifactMetadata artifactMetadata) void
setAuthentication
(Authentication authentication) void
setBlacklisted
(boolean blackListed) void
setBlocked
(boolean blocked) void
void
setLayout
(ArtifactRepositoryLayout layout) void
setMirroredRepositories
(List<ArtifactRepository> mirroredRepositories) void
void
void
void
-
Field Details
-
repository
private final org.eclipse.aether.repository.RemoteRepository repository
-
-
Constructor Details
-
ArtifactRepositoryAdapter
ArtifactRepositoryAdapter(org.eclipse.aether.repository.RemoteRepository repository)
-
-
Method Details
-
pathOf
- Specified by:
pathOf
in interfaceArtifactRepository
-
pathOfRemoteRepositoryMetadata
- Specified by:
pathOfRemoteRepositoryMetadata
in interfaceArtifactRepository
-
pathOfLocalRepositoryMetadata
public String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository) - Specified by:
pathOfLocalRepositoryMetadata
in interfaceArtifactRepository
-
getUrl
- Specified by:
getUrl
in interfaceArtifactRepository
-
setUrl
- Specified by:
setUrl
in interfaceArtifactRepository
-
getBasedir
- Specified by:
getBasedir
in interfaceArtifactRepository
-
getProtocol
- Specified by:
getProtocol
in interfaceArtifactRepository
-
getId
- Specified by:
getId
in interfaceArtifactRepository
-
setId
- Specified by:
setId
in interfaceArtifactRepository
-
getSnapshots
- Specified by:
getSnapshots
in interfaceArtifactRepository
-
setSnapshotUpdatePolicy
- Specified by:
setSnapshotUpdatePolicy
in interfaceArtifactRepository
-
getReleases
- Specified by:
getReleases
in interfaceArtifactRepository
-
setReleaseUpdatePolicy
- Specified by:
setReleaseUpdatePolicy
in interfaceArtifactRepository
-
getLayout
- Specified by:
getLayout
in interfaceArtifactRepository
-
setLayout
- Specified by:
setLayout
in interfaceArtifactRepository
-
getKey
- Specified by:
getKey
in interfaceArtifactRepository
-
isUniqueVersion
public boolean isUniqueVersion()- Specified by:
isUniqueVersion
in interfaceArtifactRepository
-
isBlacklisted
public boolean isBlacklisted()- Specified by:
isBlacklisted
in interfaceArtifactRepository
-
setBlacklisted
public void setBlacklisted(boolean blackListed) - Specified by:
setBlacklisted
in interfaceArtifactRepository
-
find
- Specified by:
find
in interfaceArtifactRepository
-
findVersions
Description copied from interface:ArtifactRepository
Finds the versions of the specified artifact that are available in this repository.- Specified by:
findVersions
in interfaceArtifactRepository
- 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
.
-
isProjectAware
public boolean isProjectAware()Description copied from interface:ArtifactRepository
Indicates whether this repository is backed by actual projects. For instance, the build reactor or IDE workspace are examples of such repositories.- Specified by:
isProjectAware
in interfaceArtifactRepository
- Returns:
true
if the repository is backed by actual projects,false
otherwise.
-
setAuthentication
- Specified by:
setAuthentication
in interfaceArtifactRepository
-
getAuthentication
- Specified by:
getAuthentication
in interfaceArtifactRepository
-
setProxy
- Specified by:
setProxy
in interfaceArtifactRepository
-
getProxy
- Specified by:
getProxy
in interfaceArtifactRepository
-
getMirroredRepositories
- Specified by:
getMirroredRepositories
in interfaceArtifactRepository
- Returns:
- the repositories mirrored by the actual one
-
setMirroredRepositories
- Specified by:
setMirroredRepositories
in interfaceArtifactRepository
- Parameters:
mirroredRepositories
- the repositories that the actual one mirrors
-
isBlocked
public boolean isBlocked()- Specified by:
isBlocked
in interfaceArtifactRepository
-
setBlocked
public void setBlocked(boolean blocked) - Specified by:
setBlocked
in interfaceArtifactRepository
-