|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.artifact.repository.DefaultRepositoryRequest
public class DefaultRepositoryRequest
Collects basic settings to access the repository system.
| Constructor Summary | |
|---|---|
DefaultRepositoryRequest()
Creates an empty repository request. |
|
DefaultRepositoryRequest(RepositoryRequest repositoryRequest)
Creates a shallow copy of the specified repository request. |
|
| Method Summary | |
|---|---|
ArtifactRepository |
getLocalRepository()
Gets the local repository to use. |
List<ArtifactRepository> |
getRemoteRepositories()
Gets the remote repositories to use. |
static RepositoryRequest |
getRepositoryRequest(MavenSession session,
MavenProject project)
|
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. |
DefaultRepositoryRequest |
setForceUpdate(boolean forceUpdate)
Enables/disabled forced checks for updated artifacts/metadata on remote repositories. |
DefaultRepositoryRequest |
setLocalRepository(ArtifactRepository localRepository)
Sets the local repository to use. |
DefaultRepositoryRequest |
setOffline(boolean offline)
Enables/disables network access to remote repositories. |
DefaultRepositoryRequest |
setRemoteRepositories(List<ArtifactRepository> remoteRepositories)
Sets the remote repositories to use. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultRepositoryRequest()
public DefaultRepositoryRequest(RepositoryRequest repositoryRequest)
repositoryRequest - The repository request to copy from, must not be null.| Method Detail |
|---|
public static RepositoryRequest getRepositoryRequest(MavenSession session,
MavenProject project)
public boolean isOffline()
RepositoryRequest
isOffline in interface RepositoryRequesttrue if remote access has been disabled, false otherwise.public DefaultRepositoryRequest setOffline(boolean offline)
RepositoryRequest
setOffline in interface RepositoryRequestoffline - true to disable remote access, false to allow network access.
null.public boolean isForceUpdate()
RepositoryRequest
isForceUpdate in interface RepositoryRequesttrue if remote repositories should be re-checked for updated artifacts/metadata, false
otherwise.public DefaultRepositoryRequest setForceUpdate(boolean forceUpdate)
RepositoryRequest
setForceUpdate in interface RepositoryRequestforceUpdate - true to forcibly check the remote repositories for updated artifacts/metadata, false to use the update policy configured on each repository.
null.public ArtifactRepository getLocalRepository()
RepositoryRequest
getLocalRepository in interface RepositoryRequestnull if not set.public DefaultRepositoryRequest setLocalRepository(ArtifactRepository localRepository)
RepositoryRequest
setLocalRepository in interface RepositoryRequestlocalRepository - The local repository to use.
null.public List<ArtifactRepository> getRemoteRepositories()
RepositoryRequest
getRemoteRepositories in interface RepositoryRequestnull.public DefaultRepositoryRequest setRemoteRepositories(List<ArtifactRepository> remoteRepositories)
RepositoryRequest
setRemoteRepositories in interface RepositoryRequestremoteRepositories - The remote repositories to use.
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||