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()
MetadataResolutionRequest
getArtifact
in interface MetadataResolutionRequest
null
if not set.public DefaultMetadataResolutionRequest setArtifact(Artifact artifact)
MetadataResolutionRequest
setArtifact
in interface MetadataResolutionRequest
artifact
- The artifact for which to resolve metadata.null
.public ArtifactRepository getLocalRepository()
MetadataResolutionRequest
getLocalRepository
in interface RepositoryRequest
getLocalRepository
in interface MetadataResolutionRequest
null
if not set.public DefaultMetadataResolutionRequest setLocalRepository(ArtifactRepository localRepository)
MetadataResolutionRequest
setLocalRepository
in interface RepositoryRequest
setLocalRepository
in interface MetadataResolutionRequest
localRepository
- The local repository to use for the resolution.null
.public List<ArtifactRepository> getRemoteRepositories()
MetadataResolutionRequest
getRemoteRepositories
in interface RepositoryRequest
getRemoteRepositories
in interface MetadataResolutionRequest
null
.public DefaultMetadataResolutionRequest setRemoteRepositories(List<ArtifactRepository> remoteRepositories)
MetadataResolutionRequest
setRemoteRepositories
in interface RepositoryRequest
setRemoteRepositories
in interface MetadataResolutionRequest
remoteRepositories
- The remote repositories to use for the resolution.null
.public boolean isResolveManagedVersions()
MetadataResolutionRequest
isResolveManagedVersions
in interface MetadataResolutionRequest
true
if the dependency management information should be retrieved, false
otherwise.public DefaultMetadataResolutionRequest setResolveManagedVersions(boolean resolveManagedVersions)
MetadataResolutionRequest
setResolveManagedVersions
in interface MetadataResolutionRequest
resolveManagedVersions
- true
if the dependency management information should be retrieved, false
otherwise.null
.public boolean isOffline()
MetadataResolutionRequest
isOffline
in interface RepositoryRequest
isOffline
in interface MetadataResolutionRequest
true
if remote access has been disabled, false
otherwise.public DefaultMetadataResolutionRequest setOffline(boolean offline)
MetadataResolutionRequest
setOffline
in interface RepositoryRequest
setOffline
in interface MetadataResolutionRequest
offline
- true
to disable remote access, false
to allow network access.null
.public boolean isForceUpdate()
RepositoryRequest
isForceUpdate
in interface RepositoryRequest
true
if remote repositories should be re-checked for updated artifacts/metadata, false
otherwise.public DefaultMetadataResolutionRequest setForceUpdate(boolean forceUpdate)
RepositoryRequest
setForceUpdate
in interface RepositoryRequest
forceUpdate
- true
to forcibly check the remote repositories for updated artifacts/metadata, false
to use the update policy configured on each repository.null
.Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.