org.apache.maven.artifact.repository
Interface ArtifactRepository
public interface ArtifactRepository
pathOf
String pathOf(Artifact artifact)
pathOfRemoteRepositoryMetadata
String pathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata)
pathOfLocalRepositoryMetadata
String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata,
ArtifactRepository repository)
getUrl
String getUrl()
setUrl
void setUrl(String url)
getBasedir
String getBasedir()
getProtocol
String getProtocol()
getId
String getId()
setId
void setId(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
String getKey()
isUniqueVersion
@Deprecated
boolean isUniqueVersion()
- Deprecated.
isBlacklisted
@Deprecated
boolean isBlacklisted()
- Deprecated.
setBlacklisted
@Deprecated
void setBlacklisted(boolean blackListed)
- Deprecated.
find
Artifact find(Artifact artifact)
findVersions
List<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 be null.
- Returns:
- The available versions of the artifact or an empty list if none, never
null.
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:
true if the repository is backed by actual projects, false otherwise.
setAuthentication
void setAuthentication(Authentication authentication)
getAuthentication
Authentication getAuthentication()
setProxy
void setProxy(Proxy proxy)
getProxy
Proxy getProxy()
Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.