public class ArtifactResolutionRequest extends Object implements RepositoryRequest
Constructor and Description |
---|
ArtifactResolutionRequest() |
ArtifactResolutionRequest(RepositoryRequest request) |
public ArtifactResolutionRequest()
public ArtifactResolutionRequest(RepositoryRequest request)
public Artifact getArtifact()
public ArtifactResolutionRequest setArtifact(Artifact artifact)
public ArtifactResolutionRequest setArtifactDependencies(Set<Artifact> artifactDependencies)
public ArtifactRepository getLocalRepository()
RepositoryRequest
getLocalRepository
in interface RepositoryRequest
null
if not set.public ArtifactResolutionRequest setLocalRepository(ArtifactRepository localRepository)
RepositoryRequest
setLocalRepository
in interface RepositoryRequest
localRepository
- The local repository to use.null
.public List<ArtifactRepository> getRemoteRepositories()
RepositoryRequest
getRemoteRepositories
in interface RepositoryRequest
null
.public ArtifactResolutionRequest setRemoteRepositories(List<ArtifactRepository> remoteRepositories)
RepositoryRequest
setRemoteRepositories
in interface RepositoryRequest
remoteRepositories
- The remote repositories to use.null
.public ArtifactFilter getCollectionFilter()
null
to collect all transitive dependencies.public ArtifactResolutionRequest setCollectionFilter(ArtifactFilter filter)
public ArtifactFilter getResolutionFilter()
getCollectionFilter()
.null
to
resolve the files for all collected artifacts.public ArtifactResolutionRequest setResolutionFilter(ArtifactFilter filter)
public List<ResolutionListener> getListeners()
public ArtifactResolutionRequest setListeners(List<ResolutionListener> listeners)
public ArtifactResolutionRequest addListener(ResolutionListener listener)
public ArtifactResolutionRequest setManagedVersionMap(Map<String,Artifact> managedVersionMap)
public ArtifactResolutionRequest setResolveRoot(boolean resolveRoot)
public boolean isResolveRoot()
public ArtifactResolutionRequest setResolveTransitively(boolean resolveDependencies)
public boolean isResolveTransitively()
public boolean isOffline()
RepositoryRequest
isOffline
in interface RepositoryRequest
true
if remote access has been disabled, false
otherwise.public ArtifactResolutionRequest setOffline(boolean offline)
RepositoryRequest
setOffline
in interface RepositoryRequest
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 ArtifactResolutionRequest 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
.public ArtifactResolutionRequest setServers(List<Server> servers)
public ArtifactResolutionRequest setMirrors(List<Mirror> mirrors)
public ArtifactResolutionRequest setProxies(List<Proxy> proxies)
public ArtifactResolutionRequest setCache(RepositoryCache cache)
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.