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

    • MAVEN_RESOLVER_TRANSPORT_DEFAULT

      public static final String MAVEN_RESOLVER_TRANSPORT_DEFAULT
      See Also:
    • MAVEN_RESOLVER_TRANSPORT_WAGON

      public static final String MAVEN_RESOLVER_TRANSPORT_WAGON
      See Also:
    • MAVEN_RESOLVER_TRANSPORT_APACHE

      public static final String MAVEN_RESOLVER_TRANSPORT_APACHE
      See Also:
    • MAVEN_RESOLVER_TRANSPORT_JDK

      public static final String MAVEN_RESOLVER_TRANSPORT_JDK
      See Also:
    • MAVEN_RESOLVER_TRANSPORT_AUTO

      public static final String MAVEN_RESOLVER_TRANSPORT_AUTO
      See Also:
    • MAVEN_REPOSITORY_CREDENTIAL_SCOPE

      public static final String MAVEN_REPOSITORY_CREDENTIAL_SCOPE
      User property selecting how server credentials configured in settings are scoped to repositories:
      • origin (default): credentials for a server id are only used with a repository whose origin (protocol, host and port) matches a repository or mirror declared with the same id in settings or on the command line. For server ids without any such declared repository (for example pure deployment servers whose URL comes from the project's distributionManagement), credentials are used as before, but a warning identifying the target origin is emitted.
      • strict: like origin, but credentials are refused for server ids that have no repository or mirror declared in settings or on the command line.
      • id: legacy behavior, credentials are matched by server id only.
      Since:
      4.0.0
      See Also:
  • 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.