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.RemoteRepositoryrepository
-
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 Artifactfind(Artifact artifact)java.util.List<java.lang.String>findVersions(Artifact artifact)Finds the versions of the specified artifact that are available in this repository.AuthenticationgetAuthentication()java.lang.StringgetBasedir()java.lang.StringgetId()java.lang.StringgetKey()ArtifactRepositoryLayoutgetLayout()java.util.List<ArtifactRepository>getMirroredRepositories()java.lang.StringgetProtocol()ProxygetProxy()ArtifactRepositoryPolicygetReleases()ArtifactRepositoryPolicygetSnapshots()java.lang.StringgetUrl()booleanisBlacklisted()booleanisProjectAware()Indicates whether this repository is backed by actual projects.booleanisUniqueVersion()java.lang.StringpathOf(Artifact artifact)java.lang.StringpathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository)java.lang.StringpathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata)voidsetAuthentication(Authentication authentication)voidsetBlacklisted(boolean blackListed)voidsetId(java.lang.String id)voidsetLayout(ArtifactRepositoryLayout layout)voidsetMirroredRepositories(java.util.List<ArtifactRepository> mirroredRepositories)voidsetProxy(Proxy proxy)voidsetReleaseUpdatePolicy(ArtifactRepositoryPolicy policy)voidsetSnapshotUpdatePolicy(ArtifactRepositoryPolicy policy)voidsetUrl(java.lang.String url)
-
-
-
Method Detail
-
pathOf
public java.lang.String pathOf(Artifact artifact)
- Specified by:
pathOfin interfaceArtifactRepository
-
pathOfRemoteRepositoryMetadata
public java.lang.String pathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata)
- Specified by:
pathOfRemoteRepositoryMetadatain interfaceArtifactRepository
-
pathOfLocalRepositoryMetadata
public java.lang.String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository)
- Specified by:
pathOfLocalRepositoryMetadatain interfaceArtifactRepository
-
getUrl
public java.lang.String getUrl()
- Specified by:
getUrlin interfaceArtifactRepository
-
setUrl
public void setUrl(java.lang.String url)
- Specified by:
setUrlin interfaceArtifactRepository
-
getBasedir
public java.lang.String getBasedir()
- Specified by:
getBasedirin interfaceArtifactRepository
-
getProtocol
public java.lang.String getProtocol()
- Specified by:
getProtocolin interfaceArtifactRepository
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceArtifactRepository
-
setId
public void setId(java.lang.String id)
- Specified by:
setIdin interfaceArtifactRepository
-
getSnapshots
public ArtifactRepositoryPolicy getSnapshots()
- Specified by:
getSnapshotsin interfaceArtifactRepository
-
setSnapshotUpdatePolicy
public void setSnapshotUpdatePolicy(ArtifactRepositoryPolicy policy)
- Specified by:
setSnapshotUpdatePolicyin interfaceArtifactRepository
-
getReleases
public ArtifactRepositoryPolicy getReleases()
- Specified by:
getReleasesin interfaceArtifactRepository
-
setReleaseUpdatePolicy
public void setReleaseUpdatePolicy(ArtifactRepositoryPolicy policy)
- Specified by:
setReleaseUpdatePolicyin interfaceArtifactRepository
-
getLayout
public ArtifactRepositoryLayout getLayout()
- Specified by:
getLayoutin interfaceArtifactRepository
-
setLayout
public void setLayout(ArtifactRepositoryLayout layout)
- Specified by:
setLayoutin interfaceArtifactRepository
-
getKey
public java.lang.String getKey()
- Specified by:
getKeyin interfaceArtifactRepository
-
isUniqueVersion
public boolean isUniqueVersion()
- Specified by:
isUniqueVersionin interfaceArtifactRepository
-
isBlacklisted
public boolean isBlacklisted()
- Specified by:
isBlacklistedin interfaceArtifactRepository
-
setBlacklisted
public void setBlacklisted(boolean blackListed)
- Specified by:
setBlacklistedin interfaceArtifactRepository
-
find
public Artifact find(Artifact artifact)
- Specified by:
findin interfaceArtifactRepository
-
findVersions
public java.util.List<java.lang.String> findVersions(Artifact artifact)
Description copied from interface:ArtifactRepositoryFinds the versions of the specified artifact that are available in this repository.- Specified by:
findVersionsin 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:ArtifactRepositoryIndicates whether this repository is backed by actual projects. For instance, the build reactor or IDE workspace are examples of such repositories.- Specified by:
isProjectAwarein interfaceArtifactRepository- Returns:
trueif the repository is backed by actual projects,falseotherwise.
-
setAuthentication
public void setAuthentication(Authentication authentication)
- Specified by:
setAuthenticationin interfaceArtifactRepository
-
getAuthentication
public Authentication getAuthentication()
- Specified by:
getAuthenticationin interfaceArtifactRepository
-
setProxy
public void setProxy(Proxy proxy)
- Specified by:
setProxyin interfaceArtifactRepository
-
getProxy
public Proxy getProxy()
- Specified by:
getProxyin interfaceArtifactRepository
-
getMirroredRepositories
public java.util.List<ArtifactRepository> getMirroredRepositories()
- Specified by:
getMirroredRepositoriesin interfaceArtifactRepository- Returns:
- the repositories mirrored by the actual one
-
setMirroredRepositories
public void setMirroredRepositories(java.util.List<ArtifactRepository> mirroredRepositories)
- Specified by:
setMirroredRepositoriesin interfaceArtifactRepository- Parameters:
mirroredRepositories- the repositories that the actual one mirrors
-
-