Class ArtifactResolutionRequest
java.lang.Object
org.apache.maven.artifact.resolver.ArtifactResolutionRequest
- All Implemented Interfaces:
RepositoryRequest
A resolution request allows you to either use an existing MavenProject, or a coordinate (gid:aid:version)
to process a POMs dependencies.
- Author:
- Jason van Zyl
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionaddListener
(ResolutionListener listener) Gets the artifact filter that controls traversal of the dependency graph.Gets the artifact filter that controls downloading of artifact files.boolean
boolean
boolean
boolean
setArtifact
(Artifact artifact) setArtifactDependencies
(Set<Artifact> artifactDependencies) setCache
(RepositoryCache cache) setCollectionFilter
(ArtifactFilter filter) setForceUpdate
(boolean forceUpdate) setListeners
(List<ResolutionListener> listeners) setLocalRepository
(ArtifactRepository localRepository) setManagedVersionMap
(Map<String, Artifact> managedVersionMap) setMirrors
(List<Mirror> mirrors) setOffline
(boolean offline) setProxies
(List<Proxy> proxies) setRemoteRepositories
(List<ArtifactRepository> remoteRepositories) setResolutionFilter
(ArtifactFilter filter) setResolveRoot
(boolean resolveRoot) setResolveTransitively
(boolean resolveDependencies) setServers
(List<Server> servers) toString()
-
Constructor Details
-
ArtifactResolutionRequest
public ArtifactResolutionRequest() -
ArtifactResolutionRequest
-
-
Method Details
-
getArtifact
-
setArtifact
-
setArtifactDependencies
-
getArtifactDependencies
-
getLocalRepository
- Specified by:
getLocalRepository
in interfaceRepositoryRequest
-
setLocalRepository
- Specified by:
setLocalRepository
in interfaceRepositoryRequest
-
getRemoteRepositories
- Specified by:
getRemoteRepositories
in interfaceRepositoryRequest
-
setRemoteRepositories
- Specified by:
setRemoteRepositories
in interfaceRepositoryRequest
-
getCollectionFilter
Gets the artifact filter that controls traversal of the dependency graph.- Returns:
- The filter used to determine which of the artifacts in the dependency graph should be traversed or
null
to collect all transitive dependencies.
-
setCollectionFilter
-
getResolutionFilter
Gets the artifact filter that controls downloading of artifact files. This filter operates on those artifacts that have been included by thegetCollectionFilter()
.- Returns:
- The filter used to determine which of the artifacts should have their files resolved or
null
to resolve the files for all collected artifacts.
-
setResolutionFilter
-
getListeners
-
setListeners
-
addListener
-
getManagedVersionMap
-
setManagedVersionMap
-
setResolveRoot
-
isResolveRoot
public boolean isResolveRoot() -
setResolveTransitively
-
isResolveTransitively
public boolean isResolveTransitively() -
toString
-
isOffline
public boolean isOffline()- Specified by:
isOffline
in interfaceRepositoryRequest
-
setOffline
- Specified by:
setOffline
in interfaceRepositoryRequest
-
isForceUpdate
public boolean isForceUpdate()- Specified by:
isForceUpdate
in interfaceRepositoryRequest
-
setForceUpdate
- Specified by:
setForceUpdate
in interfaceRepositoryRequest
-
setServers
-
getServers
-
setMirrors
-
getMirrors
-
setProxies
-
getProxies
-
setCache
-