public interface RepositoryRequest
Modifier and Type | Method and Description |
---|---|
ArtifactRepository |
getLocalRepository()
Gets the local repository to use.
|
List<ArtifactRepository> |
getRemoteRepositories()
Gets the remote repositories to use.
|
boolean |
isForceUpdate()
Indicates whether remote repositories should be re-checked for updated artifacts/metadata regardless of their
configured update policy.
|
boolean |
isOffline()
Indicates whether network access to remote repositories has been disabled.
|
RepositoryRequest |
setForceUpdate(boolean forceUpdate)
Enables/disabled forced checks for updated artifacts/metadata on remote repositories.
|
RepositoryRequest |
setLocalRepository(ArtifactRepository localRepository)
Sets the local repository to use.
|
RepositoryRequest |
setOffline(boolean offline)
Enables/disables network access to remote repositories.
|
RepositoryRequest |
setRemoteRepositories(List<ArtifactRepository> remoteRepositories)
Sets the remote repositories to use.
|
boolean isOffline()
true
if remote access has been disabled, false
otherwise.RepositoryRequest setOffline(boolean offline)
offline
- true
to disable remote access, false
to allow network access.null
.boolean isForceUpdate()
true
if remote repositories should be re-checked for updated artifacts/metadata, false
otherwise.RepositoryRequest setForceUpdate(boolean forceUpdate)
forceUpdate
- true
to forcibly check the remote repositories for updated artifacts/metadata, false
to use the update policy configured on each repository.null
.ArtifactRepository getLocalRepository()
null
if not set.RepositoryRequest setLocalRepository(ArtifactRepository localRepository)
localRepository
- The local repository to use.null
.List<ArtifactRepository> getRemoteRepositories()
null
.RepositoryRequest setRemoteRepositories(List<ArtifactRepository> remoteRepositories)
remoteRepositories
- The remote repositories to use.null
.Copyright © 2001–2018 The Apache Software Foundation. All rights reserved.