public final class MavenRepositorySystemUtils extends Object
A utility class to assist in setting up a Maven-like repository system. Note: This component is meant to assist those clients that employ the repository system outside of an IoC container, Maven plugins should instead always use regular dependency injection to acquire the repository system.
- Benjamin Bentmann
Method SummaryModifier and TypeMethodDescription
static org.eclipse.aether.DefaultRepositorySystemSessionCreates a new Maven-like repository system session by initializing the session with values typical for Maven-based resolution.
newSessionpublic static org.eclipse.aether.DefaultRepositorySystemSession newSession()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.
- The new repository system session, never