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 ArtifactRepository
public String pathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata)
pathOfRemoteRepositoryMetadata
in interface ArtifactRepository
public String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository)
pathOfLocalRepositoryMetadata
in interface ArtifactRepository
public void setLayout(ArtifactRepositoryLayout layout)
setLayout
in interface ArtifactRepository
public ArtifactRepositoryLayout getLayout()
getLayout
in interface ArtifactRepository
public void setSnapshotUpdatePolicy(ArtifactRepositoryPolicy snapshots)
setSnapshotUpdatePolicy
in interface ArtifactRepository
public ArtifactRepositoryPolicy getSnapshots()
getSnapshots
in interface ArtifactRepository
public void setReleaseUpdatePolicy(ArtifactRepositoryPolicy releases)
setReleaseUpdatePolicy
in interface ArtifactRepository
public ArtifactRepositoryPolicy getReleases()
getReleases
in interface ArtifactRepository
public String getKey()
getKey
in interface ArtifactRepository
public Artifact find(Artifact artifact)
find
in interface ArtifactRepository
public List<String> findVersions(Artifact artifact)
ArtifactRepository
findVersions
in interface ArtifactRepository
artifact
- The artifact whose available versions should be determined, must not be null
.null
.public String getId()
getId
in interface ArtifactRepository
public String getUrl()
getUrl
in interface ArtifactRepository
public String getBasedir()
getBasedir
in interface ArtifactRepository
public String getProtocol()
getProtocol
in interface ArtifactRepository
public void setId(String id)
setId
in interface ArtifactRepository
public void setUrl(String url)
setUrl
in interface ArtifactRepository
protected static <T> boolean eq(T s1, T s2)
public Authentication getAuthentication()
getAuthentication
in interface ArtifactRepository
public void setAuthentication(Authentication authentication)
setAuthentication
in interface ArtifactRepository
public Proxy getProxy()
getProxy
in interface ArtifactRepository
public void setProxy(Proxy proxy)
setProxy
in interface ArtifactRepository
public boolean isBlacklisted()
isBlacklisted
in interface ArtifactRepository
public void setBlacklisted(boolean blackListed)
setBlacklisted
in interface ArtifactRepository
public boolean isUniqueVersion()
isUniqueVersion
in interface ArtifactRepository
public boolean isProjectAware()
ArtifactRepository
isProjectAware
in interface ArtifactRepository
true
if the repository is backed by actual projects, false
otherwise.public List<ArtifactRepository> getMirroredRepositories()
getMirroredRepositories
in interface ArtifactRepository
public void setMirroredRepositories(List<ArtifactRepository> mirroredRepositories)
setMirroredRepositories
in interface ArtifactRepository
mirroredRepositories
- the repositories that the actual one mirrorsCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.