Package org.eclipse.aether.impl
Interface DependencyCollector
- All Known Implementing Classes:
BfDependencyCollector
,DefaultDependencyCollector
,DependencyCollectorDelegate
,DfDependencyCollector
public interface DependencyCollector
Given a collection of direct dependencies, recursively gathers their transitive dependencies and calculates the
dependency graph.
- Restriction:
- This interface is not intended to be extended by clients.
- Restriction:
- This interface is not intended to be implemented by clients.
- Provisional:
- This type is provisional and can be changed, moved or removed without prior notice.
-
Method Summary
Modifier and TypeMethodDescriptioncollectDependencies
(RepositorySystemSession session, CollectRequest request) Collects the transitive dependencies of some artifacts and builds a dependency graph.
-
Method Details
-
collectDependencies
CollectResult collectDependencies(RepositorySystemSession session, CollectRequest request) throws DependencyCollectionException Collects the transitive dependencies of some artifacts and builds a dependency graph. Note that this operation is only concerned about determining the coordinates of the transitive dependencies and does not actually resolve the artifact files. The supplied session carries various hooks to customize the dependency graph that must be invoked throughout the operation.- Parameters:
session
- The repository session, must not benull
.request
- The collection request, must not benull
.- Returns:
- The collection result, never
null
. - Throws:
DependencyCollectionException
- If the dependency tree could not be built.- See Also:
-
RepositorySystemSession.getDependencyTraverser()
RepositorySystemSession.getDependencyManager()
RepositorySystemSession.getDependencySelector()
RepositorySystemSession.getVersionFilter()
RepositorySystemSession.getDependencyGraphTransformer()
RepositorySystem.collectDependencies(RepositorySystemSession, CollectRequest)
-