public class DefaultMavenArtifactRepository extends Object implements MavenArtifactRepository, ArtifactRepositoryInternal
| Constructor and Description |
|---|
DefaultMavenArtifactRepository(FileResolver fileResolver,
PasswordCredentials credentials,
RepositoryTransportFactory transportFactory,
LocallyAvailableResourceFinder<org.apache.ivy.core.module.id.ArtifactRevisionId> locallyAvailableResourceFinder,
CachedExternalResourceIndex<String> cachedExternalResourceIndex) |
| Modifier and Type | Method and Description |
|---|---|
void |
artifactUrls(Object... urls)
Adds some additional URLs to use to find artifact files.
|
org.apache.ivy.plugins.resolver.DependencyResolver |
createResolver() |
void |
credentials(Closure closure)
Configure the Credentials for this repository using the supplied Closure.
|
Set<URI> |
getArtifactUrls()
Returns the additional URLs to use to find artifact files.
|
PasswordCredentials |
getCredentials()
Provides the Credentials used to authenticate to this repository.
|
String |
getName()
Returns the name for this repository.
|
URI |
getUrl()
The base URL of this repository.
|
void |
setArtifactUrls(Iterable<?> urls)
Sets the additional URLs to use to find artifact files.
|
void |
setName(String name)
Sets the name for this repository.
|
void |
setUrl(Object url)
Sets the base URL of this repository.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcredentials, getCredentialspublic DefaultMavenArtifactRepository(FileResolver fileResolver, PasswordCredentials credentials, RepositoryTransportFactory transportFactory, LocallyAvailableResourceFinder<org.apache.ivy.core.module.id.ArtifactRevisionId> locallyAvailableResourceFinder, CachedExternalResourceIndex<String> cachedExternalResourceIndex)
public String getName()
ArtifactRepositoryThe name is used in logging output and error reporting to point to information related to this repository.
getName in interface ArtifactRepositorypublic void setName(String name)
ArtifactRepositorysetName in interface ArtifactRepositoryname - The name. Must not be null.public URI getUrl()
MavenArtifactRepositoryMavenArtifactRepository.setArtifactUrls(Iterable).getUrl in interface MavenArtifactRepositorypublic void setUrl(Object url)
MavenArtifactRepositoryMavenArtifactRepository.setArtifactUrls(Iterable).
The provided value is evaluated as for Project.uri(Object). This means, for example, you can pass in a File object, or a relative path to be evaluated relative
to the project directory.
setUrl in interface MavenArtifactRepositoryurl - The base URL.public Set<URI> getArtifactUrls()
MavenArtifactRepositorygetArtifactUrls in interface MavenArtifactRepositorypublic void artifactUrls(Object... urls)
MavenArtifactRepositoryThe provided values are evaluated as for Project.uri(Object). This means, for example, you can pass in a File object, or a relative path to be evaluated
relative to the project directory.
artifactUrls in interface MavenArtifactRepositoryurls - The URLs to add.public void setArtifactUrls(Iterable<?> urls)
MavenArtifactRepositoryThe provided values are evaluated as for Project.uri(Object). This means, for example, you can pass in a File object, or a relative path to be evaluated
relative to the project directory.
setArtifactUrls in interface MavenArtifactRepositoryurls - The URLs.public org.apache.ivy.plugins.resolver.DependencyResolver createResolver()
createResolver in interface ArtifactRepositoryInternalpublic PasswordCredentials getCredentials()
AuthenticationSupportedgetCredentials in interface AuthenticationSupportedpublic void credentials(Closure closure)
AuthenticationSupported
repositories {
maven {
credentials {
username = 'joe'
password = 'secret'
}
}
}
credentials in interface AuthenticationSupportedCopyright © 2013. All rights reserved