Class DefaultRepositorySystemSessionFactory

    • Field Detail

      • MAVEN_REPO_LOCAL_HEAD

        public static final java.lang.String MAVEN_REPO_LOCAL_HEAD
        User property for chained LRM: the new "head" local repository to use, and "push" the existing into tail. Similar to maven.repo.local.tail, this property may contain comma separated list of paths to be used as local repositories (combine with chained local repository), but while latter is "appending" this one is "prepending".
        Since:
        3.9.10
        See Also:
        Constant Field Values
      • MAVEN_RESOLVER_DEPENDENCY_MANAGER_TRANSITIVITY

        public static final java.lang.String MAVEN_RESOLVER_DEPENDENCY_MANAGER_TRANSITIVITY
        User property for selecting dependency manager behavior regarding transitive dependencies and dependency management entries in their POMs. Maven 3 targeted full backward compatibility with Maven 2. Hence, it ignored dependency management entries in transitive dependency POMs. Maven 4 enables "transitivity" by default. Hence unlike Maven 3, it obeys dependency management entries deep in the dependency graph as well.
        Default (behave as whole Maven 3.x line): "false".
        Since:
        3.10.0
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultRepositorySystemSessionFactory

        public DefaultRepositorySystemSessionFactory()
    • Method Detail

      • newRepositorySession

        @Deprecated
        public org.eclipse.aether.DefaultRepositorySystemSession newRepositorySession​(MavenExecutionRequest request)
        Deprecated.
        For legacy consumers; hopefully nobody.
      • 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.
      • setUpLocalRepositoryManager

        public static org.eclipse.aether.repository.LocalRepositoryManager setUpLocalRepositoryManager​(java.lang.String localRepository,
                                                                                                       org.eclipse.aether.RepositorySystem repoSystem,
                                                                                                       org.eclipse.aether.RepositorySystemSession session)
      • resolve

        public static java.nio.file.Path resolve​(java.lang.String string)