public class StubArtifactRepository extends Object implements ArtifactRepository
Constructor and Description |
---|
StubArtifactRepository(String dir)
Default constructor
|
public StubArtifactRepository(String dir)
dir
- the basedirpublic String pathOf(Artifact artifact)
pathOf
in interface ArtifactRepository
artifactId
.ArtifactRepository.pathOf(org.apache.maven.artifact.Artifact)
public String pathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata)
pathOfRemoteRepositoryMetadata
in interface ArtifactRepository
null
.ArtifactRepository.pathOfRemoteRepositoryMetadata(org.apache.maven.artifact.metadata.ArtifactMetadata)
public String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository)
pathOfLocalRepositoryMetadata
in interface ArtifactRepository
ArtifactRepository.pathOfLocalRepositoryMetadata(org.apache.maven.artifact.metadata.ArtifactMetadata, org.apache.maven.artifact.repository.ArtifactRepository)
public String getUrl()
getUrl
in interface ArtifactRepository
null
.ArtifactRepository.getUrl()
public String getBasedir()
getBasedir
in interface ArtifactRepository
basedir
.ArtifactRepository.getBasedir()
public String getProtocol()
getProtocol
in interface ArtifactRepository
null
.ArtifactRepository.getProtocol()
public String getId()
getId
in interface ArtifactRepository
null
.ArtifactRepository.getId()
public ArtifactRepositoryPolicy getSnapshots()
getSnapshots
in interface ArtifactRepository
null
.ArtifactRepository.getSnapshots()
public ArtifactRepositoryPolicy getReleases()
getReleases
in interface ArtifactRepository
null
.ArtifactRepository.getReleases()
public ArtifactRepositoryLayout getLayout()
getLayout
in interface ArtifactRepository
null
.ArtifactRepository.getLayout()
public String getKey()
getKey
in interface ArtifactRepository
null
.ArtifactRepository.getKey()
public boolean isUniqueVersion()
isUniqueVersion
in interface ArtifactRepository
false
.ArtifactRepository.isUniqueVersion()
public void setBlacklisted(boolean blackListed)
setBlacklisted
in interface ArtifactRepository
ArtifactRepository.setBlacklisted(boolean)
public boolean isBlacklisted()
isBlacklisted
in interface ArtifactRepository
false
.ArtifactRepository.isBlacklisted()
public Artifact find(Artifact artifact)
find
in interface ArtifactRepository
public Authentication getAuthentication()
getAuthentication
in interface ArtifactRepository
public Proxy getProxy()
getProxy
in interface ArtifactRepository
public void setAuthentication(Authentication authentication)
setAuthentication
in interface ArtifactRepository
public void setId(String id)
setId
in interface ArtifactRepository
public void setLayout(ArtifactRepositoryLayout layout)
setLayout
in interface ArtifactRepository
public void setProxy(Proxy proxy)
setProxy
in interface ArtifactRepository
public void setReleaseUpdatePolicy(ArtifactRepositoryPolicy policy)
setReleaseUpdatePolicy
in interface ArtifactRepository
public void setSnapshotUpdatePolicy(ArtifactRepositoryPolicy policy)
setSnapshotUpdatePolicy
in interface ArtifactRepository
public void setUrl(String url)
setUrl
in interface ArtifactRepository
public List<String> findVersions(Artifact artifact)
findVersions
in interface ArtifactRepository
public boolean isProjectAware()
isProjectAware
in interface ArtifactRepository
public List<ArtifactRepository> getMirroredRepositories()
getMirroredRepositories
in interface ArtifactRepository
public void setMirroredRepositories(List<ArtifactRepository> artifactRepositories)
setMirroredRepositories
in interface ArtifactRepository
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.