Interface ArtifactRepository
-
- All Known Implementing Classes:
DefaultArtifactRepository,DelegatingLocalArtifactRepository,LegacyLocalRepositoryManager.ArtifactRepositoryAdapter,LocalArtifactRepository,MavenArtifactRepository,MetadataBridge.MetadataRepository,UserLocalArtifactRepository
public interface ArtifactRepositoryAbstraction of an artifact repository. Artifact repositories can be remote, local, or even build reactor or IDE workspace.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated 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()Deprecated.booleanisProjectAware()Indicates whether this repository is backed by actual projects.booleanisUniqueVersion()Deprecated.java.lang.StringpathOf(Artifact artifact)java.lang.StringpathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository)java.lang.StringpathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata)voidsetAuthentication(Authentication authentication)voidsetBlacklisted(boolean blackListed)Deprecated.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
java.lang.String pathOf(Artifact artifact)
-
pathOfRemoteRepositoryMetadata
java.lang.String pathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata)
-
pathOfLocalRepositoryMetadata
java.lang.String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository)
-
getUrl
java.lang.String getUrl()
-
setUrl
void setUrl(java.lang.String url)
-
getBasedir
java.lang.String getBasedir()
-
getProtocol
java.lang.String getProtocol()
-
getId
java.lang.String getId()
-
setId
void setId(java.lang.String id)
-
getSnapshots
ArtifactRepositoryPolicy getSnapshots()
-
setSnapshotUpdatePolicy
void setSnapshotUpdatePolicy(ArtifactRepositoryPolicy policy)
-
getReleases
ArtifactRepositoryPolicy getReleases()
-
setReleaseUpdatePolicy
void setReleaseUpdatePolicy(ArtifactRepositoryPolicy policy)
-
getLayout
ArtifactRepositoryLayout getLayout()
-
setLayout
void setLayout(ArtifactRepositoryLayout layout)
-
getKey
java.lang.String getKey()
-
isUniqueVersion
@Deprecated boolean isUniqueVersion()
Deprecated.
-
isBlacklisted
@Deprecated boolean isBlacklisted()
Deprecated.
-
setBlacklisted
@Deprecated void setBlacklisted(boolean blackListed)
Deprecated.
-
findVersions
java.util.List<java.lang.String> findVersions(Artifact artifact)
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:
trueif the repository is backed by actual projects,falseotherwise.- Since:
- 3.0-beta-1
-
setAuthentication
void setAuthentication(Authentication authentication)
- Since:
- 3.0-alpha-3
-
getAuthentication
Authentication getAuthentication()
- Since:
- 3.0-alpha-3
-
setProxy
void setProxy(Proxy proxy)
- Since:
- 3.0-alpha-3
-
getProxy
Proxy getProxy()
- Since:
- 3.0-alpha-3
-
getMirroredRepositories
java.util.List<ArtifactRepository> getMirroredRepositories()
- Returns:
- the repositories mirrored by the actual one
- Since:
- 3.0.3
-
setMirroredRepositories
void setMirroredRepositories(java.util.List<ArtifactRepository> mirroredRepositories)
- Parameters:
mirroredRepositories- the repositories that the actual one mirrors- Since:
- 3.0.3
-
-