Package org.eclipse.aether.supplier
Class SessionBuilderSupplier
java.lang.Object
org.eclipse.aether.supplier.SessionBuilderSupplier
- All Implemented Interfaces:
Supplier<org.eclipse.aether.RepositorySystemSession.SessionBuilder>
@Deprecated
public class SessionBuilderSupplier
extends Object
implements Supplier<org.eclipse.aether.RepositorySystemSession.SessionBuilder>
Deprecated.
(To be removed as it was introduced in 2.0.0-alpha-2!) This class is wrong, as it uses Resolver 1.x
bits that do interpret dependency scopes. The proper session supplier should be provided by consumer project
(Maven) that also defines the dependency scopes and their meaning and semantics, as session need to be equipped
with these bits. Session is very much dependent on the consumer project.
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:
- 2.0.0
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.eclipse.aether.RepositorySystem
Deprecated. -
Constructor Summary
ConstructorDescriptionSessionBuilderSupplier
(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.protected org.eclipse.aether.collection.DependencyGraphTransformer
Deprecated.protected org.eclipse.aether.collection.DependencyManager
Deprecated.protected org.eclipse.aether.collection.DependencySelector
Deprecated.protected org.eclipse.aether.collection.DependencyTraverser
Deprecated.
-
Field Details
-
repositorySystem
Deprecated.
-
-
Constructor Details
-
SessionBuilderSupplier
Deprecated.
-
-
Method Details
-
configureSessionBuilder
protected void configureSessionBuilder(org.eclipse.aether.RepositorySystemSession.SessionBuilder session) Deprecated. -
getDependencyTraverser
Deprecated. -
getDependencyManager
Deprecated. -
getDependencySelector
Deprecated. -
getDependencyGraphTransformer
Deprecated. -
getArtifactTypeRegistry
Deprecated. -
getArtifactDescriptorPolicy
Deprecated. -
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.
-