public class MavenArtifactRepository extends Object implements ArtifactRepository
| Constructor and Description |
|---|
MavenArtifactRepository() |
MavenArtifactRepository(String id,
String url,
ArtifactRepositoryLayout layout,
ArtifactRepositoryPolicy snapshots,
ArtifactRepositoryPolicy releases)
Create a remote download repository.
|
public MavenArtifactRepository()
public MavenArtifactRepository(String id, String url, ArtifactRepositoryLayout layout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases)
id - the unique identifier of the repositoryurl - the URL of the repositorylayout - the layout of the repositorysnapshots - the policies to use for snapshotsreleases - the policies to use for releasespublic String pathOf(Artifact artifact)
pathOf in interface ArtifactRepositorypublic String pathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata)
pathOfRemoteRepositoryMetadata in interface ArtifactRepositorypublic String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository)
pathOfLocalRepositoryMetadata in interface ArtifactRepositorypublic void setLayout(ArtifactRepositoryLayout layout)
setLayout in interface ArtifactRepositorypublic ArtifactRepositoryLayout getLayout()
getLayout in interface ArtifactRepositorypublic void setSnapshotUpdatePolicy(ArtifactRepositoryPolicy snapshots)
setSnapshotUpdatePolicy in interface ArtifactRepositorypublic ArtifactRepositoryPolicy getSnapshots()
getSnapshots in interface ArtifactRepositorypublic void setReleaseUpdatePolicy(ArtifactRepositoryPolicy releases)
setReleaseUpdatePolicy in interface ArtifactRepositorypublic ArtifactRepositoryPolicy getReleases()
getReleases in interface ArtifactRepositorypublic String getKey()
getKey in interface ArtifactRepositorypublic Artifact find(Artifact artifact)
find in interface ArtifactRepositorypublic List<String> findVersions(Artifact artifact)
ArtifactRepositoryfindVersions in interface ArtifactRepositoryartifact - The artifact whose available versions should be determined, must not be null.null.public String getId()
getId in interface ArtifactRepositorypublic String getUrl()
getUrl in interface ArtifactRepositorypublic String getBasedir()
getBasedir in interface ArtifactRepositorypublic String getProtocol()
getProtocol in interface ArtifactRepositorypublic void setId(String id)
setId in interface ArtifactRepositorypublic void setUrl(String url)
setUrl in interface ArtifactRepositoryprotected static <T> boolean eq(T s1,
T s2)
public Authentication getAuthentication()
getAuthentication in interface ArtifactRepositorypublic void setAuthentication(Authentication authentication)
setAuthentication in interface ArtifactRepositorypublic Proxy getProxy()
getProxy in interface ArtifactRepositorypublic void setProxy(Proxy proxy)
setProxy in interface ArtifactRepositorypublic boolean isBlacklisted()
isBlacklisted in interface ArtifactRepositorypublic void setBlacklisted(boolean blackListed)
setBlacklisted in interface ArtifactRepositorypublic boolean isUniqueVersion()
isUniqueVersion in interface ArtifactRepositorypublic boolean isProjectAware()
ArtifactRepositoryisProjectAware in interface ArtifactRepositorytrue if the repository is backed by actual projects, false otherwise.public List<ArtifactRepository> getMirroredRepositories()
getMirroredRepositories in interface ArtifactRepositorypublic void setMirroredRepositories(List<ArtifactRepository> mirroredRepositories)
setMirroredRepositories in interface ArtifactRepositorymirroredRepositories - the repositories that the actual one mirrorspublic boolean isBlocked()
isBlocked in interface ArtifactRepositorypublic void setBlocked(boolean blocked)
setBlocked in interface ArtifactRepositoryCopyright © 2001–2021 The Apache Software Foundation. All rights reserved.