public class DefaultMetadataResolutionRequest extends Object implements MetadataResolutionRequest
| Constructor and Description |
|---|
DefaultMetadataResolutionRequest() |
DefaultMetadataResolutionRequest(ArtifactResolutionRequest resolutionRequest) |
DefaultMetadataResolutionRequest(RepositoryRequest repositoryRequest) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public DefaultMetadataResolutionRequest()
public DefaultMetadataResolutionRequest(RepositoryRequest repositoryRequest)
public DefaultMetadataResolutionRequest(ArtifactResolutionRequest resolutionRequest)
public Artifact getArtifact()
MetadataResolutionRequestgetArtifact in interface MetadataResolutionRequestnull if not set.public DefaultMetadataResolutionRequest setArtifact(Artifact artifact)
MetadataResolutionRequestsetArtifact in interface MetadataResolutionRequestartifact - The artifact for which to resolve metadata.null.public ArtifactRepository getLocalRepository()
MetadataResolutionRequestgetLocalRepository in interface RepositoryRequestgetLocalRepository in interface MetadataResolutionRequestnull if not set.public DefaultMetadataResolutionRequest setLocalRepository(ArtifactRepository localRepository)
MetadataResolutionRequestsetLocalRepository in interface RepositoryRequestsetLocalRepository in interface MetadataResolutionRequestlocalRepository - The local repository to use for the resolution.null.public List<ArtifactRepository> getRemoteRepositories()
MetadataResolutionRequestgetRemoteRepositories in interface RepositoryRequestgetRemoteRepositories in interface MetadataResolutionRequestnull.public DefaultMetadataResolutionRequest setRemoteRepositories(List<ArtifactRepository> remoteRepositories)
MetadataResolutionRequestsetRemoteRepositories in interface RepositoryRequestsetRemoteRepositories in interface MetadataResolutionRequestremoteRepositories - The remote repositories to use for the resolution.null.public boolean isResolveManagedVersions()
MetadataResolutionRequestisResolveManagedVersions in interface MetadataResolutionRequesttrue if the dependency management information should be retrieved, false otherwise.public DefaultMetadataResolutionRequest setResolveManagedVersions(boolean resolveManagedVersions)
MetadataResolutionRequestsetResolveManagedVersions in interface MetadataResolutionRequestresolveManagedVersions - true if the dependency management information should be retrieved, false otherwise.null.public boolean isOffline()
MetadataResolutionRequestisOffline in interface RepositoryRequestisOffline in interface MetadataResolutionRequesttrue if remote access has been disabled, false otherwise.public DefaultMetadataResolutionRequest setOffline(boolean offline)
MetadataResolutionRequestsetOffline in interface RepositoryRequestsetOffline in interface MetadataResolutionRequestoffline - true to disable remote access, false to allow network access.null.public boolean isForceUpdate()
RepositoryRequestisForceUpdate in interface RepositoryRequesttrue if remote repositories should be re-checked for updated artifacts/metadata, false
otherwise.public DefaultMetadataResolutionRequest setForceUpdate(boolean forceUpdate)
RepositoryRequestsetForceUpdate 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.Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.