|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.repository.legacy.metadata.DefaultMetadataResolutionRequest
public class DefaultMetadataResolutionRequest
Forms a request to retrieve artifact metadata.
| Constructor Summary | |
|---|---|
DefaultMetadataResolutionRequest()
|
|
DefaultMetadataResolutionRequest(ArtifactResolutionRequest resolutionRequest)
|
|
DefaultMetadataResolutionRequest(RepositoryRequest repositoryRequest)
|
|
| Method Summary | |
|---|---|
Artifact |
getArtifact()
Gets the artifact to resolve metadata for. |
ArtifactRepository |
getLocalRepository()
Gets the local repository to use for the resolution. |
List<ArtifactRepository> |
getRemoteRepositories()
Gets the remote repositories to use for the resolution. |
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. |
boolean |
isResolveManagedVersions()
Determines whether the managed version information should be retrieved. |
DefaultMetadataResolutionRequest |
setArtifact(Artifact artifact)
Sets the artifact for which to resolve metadata. |
DefaultMetadataResolutionRequest |
setForceUpdate(boolean forceUpdate)
Enables/disabled forced checks for updated artifacts/metadata on remote repositories. |
DefaultMetadataResolutionRequest |
setLocalRepository(ArtifactRepository localRepository)
Sets the local repository to use for the resolution. |
DefaultMetadataResolutionRequest |
setOffline(boolean offline)
Enables/disables network access to remote repositories. |
DefaultMetadataResolutionRequest |
setRemoteRepositories(List<ArtifactRepository> remoteRepositories)
Sets the remote repositories to use for the resolution. |
DefaultMetadataResolutionRequest |
setResolveManagedVersions(boolean resolveManagedVersions)
Enables/disables resolution of the dependency manageemnt information. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultMetadataResolutionRequest()
public DefaultMetadataResolutionRequest(RepositoryRequest repositoryRequest)
public DefaultMetadataResolutionRequest(ArtifactResolutionRequest resolutionRequest)
| Method Detail |
|---|
public Artifact getArtifact()
MetadataResolutionRequest
getArtifact in interface MetadataResolutionRequestnull if not set.public DefaultMetadataResolutionRequest setArtifact(Artifact artifact)
MetadataResolutionRequest
setArtifact in interface MetadataResolutionRequestartifact - The artifact for which to resolve metadata.
null.public ArtifactRepository getLocalRepository()
MetadataResolutionRequest
getLocalRepository in interface RepositoryRequestgetLocalRepository in interface MetadataResolutionRequestnull if not set.public DefaultMetadataResolutionRequest setLocalRepository(ArtifactRepository localRepository)
MetadataResolutionRequest
setLocalRepository in interface RepositoryRequestsetLocalRepository in interface MetadataResolutionRequestlocalRepository - The local repository to use for the resolution.
null.public List<ArtifactRepository> getRemoteRepositories()
MetadataResolutionRequest
getRemoteRepositories in interface RepositoryRequestgetRemoteRepositories in interface MetadataResolutionRequestnull.public DefaultMetadataResolutionRequest setRemoteRepositories(List<ArtifactRepository> remoteRepositories)
MetadataResolutionRequest
setRemoteRepositories in interface RepositoryRequestsetRemoteRepositories in interface MetadataResolutionRequestremoteRepositories - The remote repositories to use for the resolution.
null.public boolean isResolveManagedVersions()
MetadataResolutionRequest
isResolveManagedVersions in interface MetadataResolutionRequesttrue if the dependency management information should be retrieved, false otherwise.public DefaultMetadataResolutionRequest setResolveManagedVersions(boolean resolveManagedVersions)
MetadataResolutionRequest
setResolveManagedVersions in interface MetadataResolutionRequestresolveManagedVersions - true if the dependency management information should be retrieved, false otherwise.
null.public boolean isOffline()
MetadataResolutionRequest
isOffline in interface RepositoryRequestisOffline in interface MetadataResolutionRequesttrue if remote access has been disabled, false otherwise.public DefaultMetadataResolutionRequest setOffline(boolean offline)
MetadataResolutionRequest
setOffline in interface RepositoryRequestsetOffline in interface MetadataResolutionRequestoffline - 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 DefaultMetadataResolutionRequest 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||