Class ClassicDependencyManager
java.lang.Object
org.eclipse.aether.util.graph.manager.AbstractDependencyManager
org.eclipse.aether.util.graph.manager.ClassicDependencyManager
- All Implemented Interfaces:
DependencyManager
A dependency manager that mimics the way Maven 2.x works. This manager was used throughout all Maven 3.x versions.
This manager has deriveUntil=2
and applyFrom=2
.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.aether.util.graph.manager.AbstractDependencyManager
AbstractDependencyManager.Key
-
Field Summary
Fields inherited from class org.eclipse.aether.util.graph.manager.AbstractDependencyManager
applyFrom, depth, deriveUntil, managedExclusions, managedLocalPaths, managedOptionals, managedScopes, managedVersions
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new dependency manager without any management information.ClassicDependencyManager
(boolean transitive) Creates a new dependency manager without any management information. -
Method Summary
Modifier and TypeMethodDescriptionDerives a dependency manager for the specified collection context.protected DependencyManager
newInstance
(Map<Object, String> managedVersions, Map<Object, String> managedScopes, Map<Object, Boolean> managedOptionals, Map<Object, String> managedLocalPaths, Map<Object, Collection<Exclusion>> managedExclusions) Methods inherited from class org.eclipse.aether.util.graph.manager.AbstractDependencyManager
equals, hashCode, manageDependency
-
Constructor Details
-
ClassicDependencyManager
public ClassicDependencyManager()Creates a new dependency manager without any management information. -
ClassicDependencyManager
Creates a new dependency manager without any management information.- Parameters:
transitive
- If true, this manager will collect (derive) until last node on graph. If false, it will work as original Maven 3 "classic" dependency manager, collect only up to depth of 2.- Since:
- 2.0.0
-
-
Method Details
-
deriveChildManager
Description copied from interface:DependencyManager
Derives a dependency manager for the specified collection context. When calculating the child manager, implementors are strongly advised to simply return the current instance if nothing changed to help save memory.- Specified by:
deriveChildManager
in interfaceDependencyManager
- Overrides:
deriveChildManager
in classAbstractDependencyManager
- Parameters:
context
- The dependency collection context, must not benull
.- Returns:
- The dependency manager for the dependencies of the target node or
null
if dependency management should no longer be applied.
-
newInstance
protected DependencyManager newInstance(Map<Object, String> managedVersions, Map<Object, String> managedScopes, Map<Object, Boolean> managedOptionals, Map<Object, String> managedLocalPaths, Map<Object, Collection<Exclusion>> managedExclusions) - Specified by:
newInstance
in classAbstractDependencyManager
-