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 java.lang.Object implements ArtifactRepository
-
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.aether.repository.RemoteRepository
repository
-
Constructor Summary
Constructors Constructor Description ArtifactRepositoryAdapter(org.eclipse.aether.repository.RemoteRepository repository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Artifact
find(Artifact artifact)
java.util.List<java.lang.String>
findVersions(Artifact artifact)
Finds the versions of the specified artifact that are available in this repository.Authentication
getAuthentication()
java.lang.String
getBasedir()
java.lang.String
getId()
java.lang.String
getKey()
ArtifactRepositoryLayout
getLayout()
java.util.List<ArtifactRepository>
getMirroredRepositories()
java.lang.String
getProtocol()
Proxy
getProxy()
ArtifactRepositoryPolicy
getReleases()
ArtifactRepositoryPolicy
getSnapshots()
java.lang.String
getUrl()
boolean
isBlacklisted()
boolean
isBlocked()
boolean
isProjectAware()
Indicates whether this repository is backed by actual projects.boolean
isUniqueVersion()
java.lang.String
pathOf(Artifact artifact)
java.lang.String
pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository)
java.lang.String
pathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata)
void
setAuthentication(Authentication authentication)
void
setBlacklisted(boolean blackListed)
void
setBlocked(boolean blocked)
void
setId(java.lang.String id)
void
setLayout(ArtifactRepositoryLayout layout)
void
setMirroredRepositories(java.util.List<ArtifactRepository> mirroredRepositories)
void
setProxy(Proxy proxy)
void
setReleaseUpdatePolicy(ArtifactRepositoryPolicy policy)
void
setSnapshotUpdatePolicy(ArtifactRepositoryPolicy policy)
void
setUrl(java.lang.String url)
-
-
-
Method Detail
-
pathOf
public java.lang.String pathOf(Artifact artifact)
- Specified by:
pathOf
in interfaceArtifactRepository
-
pathOfRemoteRepositoryMetadata
public java.lang.String pathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata)
- Specified by:
pathOfRemoteRepositoryMetadata
in interfaceArtifactRepository
-
pathOfLocalRepositoryMetadata
public java.lang.String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository)
- Specified by:
pathOfLocalRepositoryMetadata
in interfaceArtifactRepository
-
getUrl
public java.lang.String getUrl()
- Specified by:
getUrl
in interfaceArtifactRepository
-
setUrl
public void setUrl(java.lang.String url)
- Specified by:
setUrl
in interfaceArtifactRepository
-
getBasedir
public java.lang.String getBasedir()
- Specified by:
getBasedir
in interfaceArtifactRepository
-
getProtocol
public java.lang.String getProtocol()
- Specified by:
getProtocol
in interfaceArtifactRepository
-
getId
public java.lang.String getId()
- Specified by:
getId
in interfaceArtifactRepository
-
setId
public void setId(java.lang.String id)
- Specified by:
setId
in interfaceArtifactRepository
-
getSnapshots
public ArtifactRepositoryPolicy getSnapshots()
- Specified by:
getSnapshots
in interfaceArtifactRepository
-
setSnapshotUpdatePolicy
public void setSnapshotUpdatePolicy(ArtifactRepositoryPolicy policy)
- Specified by:
setSnapshotUpdatePolicy
in interfaceArtifactRepository
-
getReleases
public ArtifactRepositoryPolicy getReleases()
- Specified by:
getReleases
in interfaceArtifactRepository
-
setReleaseUpdatePolicy
public void setReleaseUpdatePolicy(ArtifactRepositoryPolicy policy)
- Specified by:
setReleaseUpdatePolicy
in interfaceArtifactRepository
-
getLayout
public ArtifactRepositoryLayout getLayout()
- Specified by:
getLayout
in interfaceArtifactRepository
-
setLayout
public void setLayout(ArtifactRepositoryLayout layout)
- Specified by:
setLayout
in interfaceArtifactRepository
-
getKey
public java.lang.String 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
public Artifact find(Artifact artifact)
- Specified by:
find
in interfaceArtifactRepository
-
findVersions
public java.util.List<java.lang.String> findVersions(Artifact artifact)
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
public void setAuthentication(Authentication authentication)
- Specified by:
setAuthentication
in interfaceArtifactRepository
-
getAuthentication
public Authentication getAuthentication()
- Specified by:
getAuthentication
in interfaceArtifactRepository
-
setProxy
public void setProxy(Proxy proxy)
- Specified by:
setProxy
in interfaceArtifactRepository
-
getProxy
public Proxy getProxy()
- Specified by:
getProxy
in interfaceArtifactRepository
-
getMirroredRepositories
public java.util.List<ArtifactRepository> getMirroredRepositories()
- Specified by:
getMirroredRepositories
in interfaceArtifactRepository
- Returns:
- the repositories mirrored by the actual one
-
setMirroredRepositories
public void setMirroredRepositories(java.util.List<ArtifactRepository> mirroredRepositories)
- 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
-
-