Class DefaultRepositorySystemSessionFactory

java.lang.Object
org.apache.maven.internal.aether.DefaultRepositorySystemSessionFactory
All Implemented Interfaces:
RepositorySystemSessionFactory

@Named @Singleton public class DefaultRepositorySystemSessionFactory extends Object implements RepositorySystemSessionFactory
Since:
3.3.0
  • Field Details

  • Constructor Details

  • Method Details

    • newRepositorySession

      @Deprecated public org.eclipse.aether.RepositorySystemSession newRepositorySession(MavenExecutionRequest request)
      Deprecated.
    • newRepositorySessionBuilder

      public org.eclipse.aether.RepositorySystemSession.SessionBuilder newRepositorySessionBuilder(MavenExecutionRequest request)
      Description copied from interface: RepositorySystemSessionFactory
      Creates "ready to use" session builder instance. The factory does not set up one thing: the WorkspaceReaders, that is caller duty to figure out. Workspace readers should be set up as very last thing before using resolver session, that is built by invoking RepositorySystemSession.SessionBuilder.build() method.
      Specified by:
      newRepositorySessionBuilder in interface RepositorySystemSessionFactory
      Parameters:
      request - The maven execution request, must not be null.
      Returns:
      The session builder "ready to use" without workspace readers.
    • resolve

      private Path resolve(String string)
    • buildVersionFilter

      private org.eclipse.aether.collection.VersionFilter buildVersionFilter(String filterExpression)
    • parseVersion

      private org.eclipse.aether.version.Version parseVersion(String spec)
    • parseVersionRange

      private org.eclipse.aether.version.VersionRange parseVersionRange(String spec)
    • createMergedProperties

      private Map<String,String> createMergedProperties(MavenExecutionRequest request)
    • getPropertiesFromRequestedProfiles

      private Map<String,String> getPropertiesFromRequestedProfiles(MavenExecutionRequest request)
    • getUserAgent

      private String getUserAgent()