|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.artifact.resolver.ArtifactResolutionRequest
public class ArtifactResolutionRequest
A resolution request allows you to either use an existing MavenProject, or a coordinate (gid:aid:version) to process a POMs dependencies.
Constructor Summary | |
---|---|
ArtifactResolutionRequest()
|
|
ArtifactResolutionRequest(RepositoryRequest request)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ArtifactResolutionRequest()
public ArtifactResolutionRequest(RepositoryRequest request)
Method Detail |
---|
public Artifact getArtifact()
public ArtifactResolutionRequest setArtifact(Artifact artifact)
public ArtifactResolutionRequest setArtifactDependencies(Set<Artifact> artifactDependencies)
public Set<Artifact> getArtifactDependencies()
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 Map getManagedVersionMap()
public ArtifactResolutionRequest setManagedVersionMap(Map managedVersionMap)
public ArtifactResolutionRequest setResolveRoot(boolean resolveRoot)
public boolean isResolveRoot()
public ArtifactResolutionRequest setResolveTransitively(boolean resolveDependencies)
public boolean isResolveTransitively()
public String toString()
toString
in class Object
public RepositoryCache getCache()
public ArtifactResolutionRequest setCache(RepositoryCache cache)
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 List<Server> getServers()
public ArtifactResolutionRequest setMirrors(List<Mirror> mirrors)
public List<Mirror> getMirrors()
public ArtifactResolutionRequest setProxies(List<Proxy> proxies)
public List<Proxy> getProxies()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |