Class MavenRepositorySystemUtils
java.lang.Object
org.apache.maven.repository.internal.MavenRepositorySystemUtils
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.
- 
Method SummaryModifier and TypeMethodDescriptionstatic org.eclipse.aether.artifact.ArtifactTypeRegistryCreates new Maven-likeArtifactTypeRegistry.static org.eclipse.aether.DefaultRepositorySystemSessionDeprecated.This method is here only for legacy uses (like UTs), nothing else should use it.static org.eclipse.aether.RepositorySystemSession.SessionBuildernewSession(org.eclipse.aether.RepositorySystemSession.SessionBuilder session, org.eclipse.aether.artifact.ArtifactTypeRegistry artifactTypeRegistry) Creates a new Maven-like repository system session by initializing the session with values typical for Maven-based resolution.
- 
Method Details- 
newSessionDeprecated.This method is here only for legacy uses (like UTs), nothing else should use it.This method is deprecated, nobody should use it.
- 
newArtifactTypeRegistrypublic static org.eclipse.aether.artifact.ArtifactTypeRegistry newArtifactTypeRegistry()Creates new Maven-likeArtifactTypeRegistry. This method should not be used from Maven.- Since:
- 4.0.0
 
- 
newSessionpublic static org.eclipse.aether.RepositorySystemSession.SessionBuilder newSession(org.eclipse.aether.RepositorySystemSession.SessionBuilder session, org.eclipse.aether.artifact.ArtifactTypeRegistry artifactTypeRegistry) 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.- Returns:
- The new repository system session, never null.
- Since:
- 4.0.0
 
 
-