Class ClassicDependencyManager
java.lang.Object
org.eclipse.aether.util.graph.manager.AbstractDependencyManager
org.eclipse.aether.util.graph.manager.ClassicDependencyManager
- All Implemented Interfaces:
org.eclipse.aether.collection.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
.
Note regarding transitivity: it is broken, and should not be used.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.aether.util.graph.manager.AbstractDependencyManager
AbstractDependencyManager.Holder<T>, AbstractDependencyManager.Key
-
Field Summary
Fields inherited from class org.eclipse.aether.util.graph.manager.AbstractDependencyManager
applyFrom, depth, deriveUntil, managedExclusions, managedLocalPaths, managedOptionals, managedScopes, managedVersions, systemDependencyScope
-
Constructor Summary
ConstructorDescriptionDeprecated.Use constructor that provides consumer application specific predicate.ClassicDependencyManager
(boolean transitive, org.eclipse.aether.scope.ScopeManager scopeManager) Creates a new dependency manager without any management information.ClassicDependencyManager
(org.eclipse.aether.scope.ScopeManager scopeManager) -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.aether.collection.DependencyManager
deriveChildManager
(org.eclipse.aether.collection.DependencyCollectionContext context) protected org.eclipse.aether.collection.DependencyManager
newInstance
(Map<Object, AbstractDependencyManager.Holder<String>> managedVersions, Map<Object, AbstractDependencyManager.Holder<String>> managedScopes, Map<Object, AbstractDependencyManager.Holder<Boolean>> managedOptionals, Map<Object, AbstractDependencyManager.Holder<String>> managedLocalPaths, Map<Object, Collection<AbstractDependencyManager.Holder<Collection<org.eclipse.aether.graph.Exclusion>>>> managedExclusions) Methods inherited from class org.eclipse.aether.util.graph.manager.AbstractDependencyManager
equals, hashCode, isApplicable, isApplied, isDerived, manageDependency
-
Constructor Details
-
ClassicDependencyManager
Deprecated.Use constructor that provides consumer application specific predicate.Creates a new dependency manager without any management information. -
ClassicDependencyManager
-
ClassicDependencyManager
public ClassicDependencyManager(boolean transitive, org.eclipse.aether.scope.ScopeManager scopeManager) 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
public org.eclipse.aether.collection.DependencyManager deriveChildManager(org.eclipse.aether.collection.DependencyCollectionContext context) - Specified by:
deriveChildManager
in interfaceorg.eclipse.aether.collection.DependencyManager
- Overrides:
deriveChildManager
in classAbstractDependencyManager
-
newInstance
protected org.eclipse.aether.collection.DependencyManager newInstance(Map<Object, AbstractDependencyManager.Holder<String>> managedVersions, Map<Object, AbstractDependencyManager.Holder<String>> managedScopes, Map<Object, AbstractDependencyManager.Holder<Boolean>> managedOptionals, Map<Object, AbstractDependencyManager.Holder<String>> managedLocalPaths, Map<Object, Collection<AbstractDependencyManager.Holder<Collection<org.eclipse.aether.graph.Exclusion>>>> managedExclusions) - Specified by:
newInstance
in classAbstractDependencyManager
-