Class ArtifactResolutionRequest
java.lang.Object
org.apache.maven.artifact.resolver.ArtifactResolutionRequest
- All Implemented Interfaces:
RepositoryRequest
Deprecated.
A resolution request allows you to either use an existing MavenProject, or a coordinate (gid:aid:version)
to process a POMs dependencies.
-
Constructor Summary
ConstructorDescriptionDeprecated.Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionaddListener
(ResolutionListener listener) Deprecated.Deprecated.Deprecated.Deprecated.Gets the artifact filter that controls traversal of the dependency graph.Deprecated.Deprecated.Gets the local repository to use.Deprecated.Deprecated.Deprecated.Deprecated.Gets the remote repositories to use.Deprecated.Gets the artifact filter that controls downloading of artifact files.Deprecated.boolean
Deprecated.Indicates whether remote repositories should be re-checked for updated artifacts/metadata regardless of their configured update policy.boolean
Deprecated.Indicates whether network access to remote repositories has been disabled.boolean
Deprecated.boolean
Deprecated.setArtifact
(Artifact artifact) Deprecated.setArtifactDependencies
(Set<Artifact> artifactDependencies) Deprecated.setCache
(RepositoryCache cache) Deprecated.setCollectionFilter
(ArtifactFilter filter) Deprecated.setForceUpdate
(boolean forceUpdate) Deprecated.Enables/disabled forced checks for updated artifacts/metadata on remote repositories.setListeners
(List<ResolutionListener> listeners) Deprecated.setLocalRepository
(ArtifactRepository localRepository) Deprecated.Sets the local repository to use.setManagedVersionMap
(Map<String, Artifact> managedVersionMap) Deprecated.setMirrors
(List<Mirror> mirrors) Deprecated.setOffline
(boolean offline) Deprecated.Enables/disables network access to remote repositories.setProxies
(List<Proxy> proxies) Deprecated.setRemoteRepositories
(List<ArtifactRepository> remoteRepositories) Deprecated.Sets the remote repositories to use.setResolutionFilter
(ArtifactFilter filter) Deprecated.setResolveRoot
(boolean resolveRoot) Deprecated.setResolveTransitively
(boolean resolveDependencies) Deprecated.setServers
(List<Server> servers) Deprecated.toString()
Deprecated.
-
Constructor Details
-
ArtifactResolutionRequest
public ArtifactResolutionRequest()Deprecated. -
ArtifactResolutionRequest
Deprecated.
-
-
Method Details
-
getArtifact
Deprecated. -
setArtifact
Deprecated. -
setArtifactDependencies
Deprecated. -
getArtifactDependencies
Deprecated. -
getLocalRepository
Deprecated.Description copied from interface:RepositoryRequest
Gets the local repository to use.- Specified by:
getLocalRepository
in interfaceRepositoryRequest
- Returns:
- The local repository to use or
null
if not set.
-
setLocalRepository
Deprecated.Description copied from interface:RepositoryRequest
Sets the local repository to use.- Specified by:
setLocalRepository
in interfaceRepositoryRequest
- Parameters:
localRepository
- The local repository to use.- Returns:
- This request, never
null
.
-
getRemoteRepositories
Deprecated.Description copied from interface:RepositoryRequest
Gets the remote repositories to use.- Specified by:
getRemoteRepositories
in interfaceRepositoryRequest
- Returns:
- The remote repositories to use, never
null
.
-
setRemoteRepositories
Deprecated.Description copied from interface:RepositoryRequest
Sets the remote repositories to use.- Specified by:
setRemoteRepositories
in interfaceRepositoryRequest
- Parameters:
remoteRepositories
- The remote repositories to use.- Returns:
- This request, never
null
.
-
getCollectionFilter
Deprecated.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
Deprecated. -
getResolutionFilter
Deprecated.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
Deprecated. -
getListeners
Deprecated. -
setListeners
Deprecated. -
addListener
Deprecated. -
getManagedVersionMap
Deprecated. -
setManagedVersionMap
Deprecated. -
setResolveRoot
Deprecated. -
isResolveRoot
public boolean isResolveRoot()Deprecated. -
setResolveTransitively
Deprecated. -
isResolveTransitively
public boolean isResolveTransitively()Deprecated. -
toString
Deprecated. -
isOffline
public boolean isOffline()Deprecated.Description copied from interface:RepositoryRequest
Indicates whether network access to remote repositories has been disabled.- Specified by:
isOffline
in interfaceRepositoryRequest
- Returns:
true
if remote access has been disabled,false
otherwise.
-
setOffline
Deprecated.Description copied from interface:RepositoryRequest
Enables/disables network access to remote repositories.- Specified by:
setOffline
in interfaceRepositoryRequest
- Parameters:
offline
-true
to disable remote access,false
to allow network access.- Returns:
- This request, never
null
.
-
isForceUpdate
public boolean isForceUpdate()Deprecated.Description copied from interface:RepositoryRequest
Indicates whether remote repositories should be re-checked for updated artifacts/metadata regardless of their configured update policy.- Specified by:
isForceUpdate
in interfaceRepositoryRequest
- Returns:
true
if remote repositories should be re-checked for updated artifacts/metadata,false
otherwise.
-
setForceUpdate
Deprecated.Description copied from interface:RepositoryRequest
Enables/disabled forced checks for updated artifacts/metadata on remote repositories.- Specified by:
setForceUpdate
in interfaceRepositoryRequest
- Parameters:
forceUpdate
-true
to forcibly check the remote repositories for updated artifacts/metadata,false
to use the update policy configured on each repository.- Returns:
- This request, never
null
.
-
setServers
Deprecated. -
getServers
Deprecated. -
setMirrors
Deprecated. -
getMirrors
Deprecated. -
setProxies
Deprecated. -
getProxies
Deprecated. -
setCache
Deprecated.
-