public interface MetadataResolutionRequest extends 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 |
isOffline()
Indicates whether network access to remote repositories has been disabled.
|
boolean |
isResolveManagedVersions()
Determines whether the managed version information should be retrieved.
|
MetadataResolutionRequest |
setArtifact(Artifact artifact)
Sets the artifact for which to resolve metadata.
|
MetadataResolutionRequest |
setLocalRepository(ArtifactRepository localRepository)
Sets the local repository to use for the resolution.
|
MetadataResolutionRequest |
setOffline(boolean offline)
Enables/disables network access to remote repositories.
|
MetadataResolutionRequest |
setRemoteRepositories(List<ArtifactRepository> remoteRepositories)
Sets the remote repositories to use for the resolution.
|
MetadataResolutionRequest |
setResolveManagedVersions(boolean resolveManagedVersions)
Enables/disables resolution of the dependency management information.
|
isForceUpdate, setForceUpdateboolean isOffline()
isOffline in interface RepositoryRequesttrue if remote access has been disabled, false otherwise.MetadataResolutionRequest setOffline(boolean offline)
setOffline in interface RepositoryRequestoffline - true to disable remote access, false to allow network access.null.Artifact getArtifact()
null if not set.MetadataResolutionRequest setArtifact(Artifact artifact)
artifact - The artifact for which to resolve metadata.null.ArtifactRepository getLocalRepository()
getLocalRepository in interface RepositoryRequestnull if not set.MetadataResolutionRequest setLocalRepository(ArtifactRepository localRepository)
setLocalRepository in interface RepositoryRequestlocalRepository - The local repository to use for the resolution.null.List<ArtifactRepository> getRemoteRepositories()
getRemoteRepositories in interface RepositoryRequestnull.MetadataResolutionRequest setRemoteRepositories(List<ArtifactRepository> remoteRepositories)
setRemoteRepositories in interface RepositoryRequestremoteRepositories - The remote repositories to use for the resolution.null.boolean isResolveManagedVersions()
true if the dependency management information should be retrieved, false otherwise.MetadataResolutionRequest setResolveManagedVersions(boolean resolveManagedVersions)
resolveManagedVersions - true if the dependency management information should be retrieved, false otherwise.null.Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.