Class MavenSessionBuilderSupplier
java.lang.Object
org.apache.maven.repository.internal.MavenSessionBuilderSupplier
- All Implemented Interfaces:
Supplier<org.eclipse.aether.RepositorySystemSession.SessionBuilder>
@Deprecated(since="4.0.0")
public class MavenSessionBuilderSupplier
extends Object
implements Supplier<org.eclipse.aether.RepositorySystemSession.SessionBuilder>
Deprecated.
A simple
Supplier
of RepositorySystemSession.SessionBuilder
instances, that on each call supplies newly
constructed instance. To create session out of builder, use RepositorySystemSession.SessionBuilder.build()
. For proper closing
of sessions, use RepositorySystemSession.CloseableSession.close()
method on built instance(s).
Extend this class and override methods to customize, if needed.
- Since:
- 4.0.0
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.eclipse.aether.RepositorySystem
Deprecated.protected final org.eclipse.aether.impl.scope.InternalScopeManager
Deprecated. -
Constructor Summary
ConstructorDescriptionMavenSessionBuilderSupplier
(org.eclipse.aether.RepositorySystem repositorySystem) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureSessionBuilder
(org.eclipse.aether.RepositorySystemSession.SessionBuilder session) Deprecated.org.eclipse.aether.RepositorySystemSession.SessionBuilder
get()
Deprecated.Creates a new Maven-like repository system session by initializing the session with values typical for Maven-based resolution.protected org.eclipse.aether.resolution.ArtifactDescriptorPolicy
Deprecated.protected org.eclipse.aether.artifact.ArtifactTypeRegistry
Deprecated.This method produces "surrogate" type registry that is static: it aims users that want to use Maven-Resolver without involving Maven Core and related things.protected org.eclipse.aether.collection.DependencyGraphTransformer
Deprecated.protected org.eclipse.aether.collection.DependencyManager
Deprecated.org.eclipse.aether.collection.DependencyManager
getDependencyManager
(boolean transitive) Deprecated.protected org.eclipse.aether.collection.DependencySelector
Deprecated.protected org.eclipse.aether.collection.DependencyTraverser
Deprecated.protected org.eclipse.aether.impl.scope.InternalScopeManager
Deprecated.
-
Field Details
-
repositorySystem
protected final org.eclipse.aether.RepositorySystem repositorySystemDeprecated. -
scopeManager
protected final org.eclipse.aether.impl.scope.InternalScopeManager scopeManagerDeprecated.
-
-
Constructor Details
-
MavenSessionBuilderSupplier
public MavenSessionBuilderSupplier(org.eclipse.aether.RepositorySystem repositorySystem) Deprecated.
-
-
Method Details
-
getScopeManager
protected org.eclipse.aether.impl.scope.InternalScopeManager getScopeManager()Deprecated. -
getDependencyTraverser
protected org.eclipse.aether.collection.DependencyTraverser getDependencyTraverser()Deprecated. -
getDependencyManager
protected org.eclipse.aether.collection.DependencyManager getDependencyManager()Deprecated. -
getDependencyManager
public org.eclipse.aether.collection.DependencyManager getDependencyManager(boolean transitive) Deprecated. -
getDependencySelector
protected org.eclipse.aether.collection.DependencySelector getDependencySelector()Deprecated. -
getDependencyGraphTransformer
protected org.eclipse.aether.collection.DependencyGraphTransformer getDependencyGraphTransformer()Deprecated. -
getArtifactTypeRegistry
protected org.eclipse.aether.artifact.ArtifactTypeRegistry getArtifactTypeRegistry()Deprecated.This method produces "surrogate" type registry that is static: it aims users that want to use Maven-Resolver without involving Maven Core and related things.This type registry is NOT used by Maven Core: Maven replaces it during Session creation with a type registry that supports extending it (i.e. via Maven Extensions).
Important: this "static" list of types should be in-sync with core provided types.
-
getArtifactDescriptorPolicy
protected org.eclipse.aether.resolution.ArtifactDescriptorPolicy getArtifactDescriptorPolicy()Deprecated. -
configureSessionBuilder
protected void configureSessionBuilder(org.eclipse.aether.RepositorySystemSession.SessionBuilder session) Deprecated. -
get
public org.eclipse.aether.RepositorySystemSession.SessionBuilder get()Deprecated.Creates a new Maven-like repository system session by initializing the session with values typical for Maven-based resolution. In more detail, this method configures settings relevant for the processing of dependency graphs, most other settings remain at their generic default value. Use the various setters to further configure the session with authentication, mirror, proxy and other information required for your environment. At least, local repository manager needs to be configured to make session be able to create session instance.
-
maven-api-impl
jar instead