Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for newSession (0.06 sec)

  1. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultSession.java

                mss = new MavenSession(repoSession, ms.getRequest(), ms.getResult());
            } else {
                mss = ms;
            }
            return newSession(mss, repositories);
        }
    
        protected Session newSession(MavenSession mavenSession, List<RemoteRepository> repositories) {
            return new DefaultSession(
                    nonNull(mavenSession),
                    getRepositorySystem(),
                    repositories,
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/RepositoryUtils.java

            }
    
            final LocalRepositoryManager llrm =
                    system.newLocalRepositoryManager(newSession, new LocalRepository(repository.getBasedir()));
            newSession.setLocalRepositoryManager(llrm);
            return newSession;
        }
    
        private static int repositoryHashCode(RemoteRepository repository) {
            int result = 17;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16K bytes
    - Viewed (0)
  3. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/MavenRepositorySystemUtils.java

         *
         * @deprecated This method is here only for legacy uses (like UTs), nothing else should use it.
         */
        @Deprecated
        public static DefaultRepositorySystemSession newSession() {
            DefaultRepositorySystemSession session = new DefaultRepositorySystemSession(h -> false); // no close handle
            MavenSessionBuilderSupplier builder = new MavenSessionBuilderSupplier();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelBuilder.java

        String MODEL_VERSION_4_0_0 = "4.0.0";
    
        String MODEL_VERSION_4_1_0 = "4.1.0";
    
        List<String> VALID_MODEL_VERSIONS = List.of(MODEL_VERSION_4_0_0, MODEL_VERSION_4_1_0);
    
        ModelBuilderSession newSession();
    
        interface ModelBuilderSession {
    
            ModelBuilderResult build(ModelBuilderRequest request) throws ModelBuilderException;
        }
    
        Model buildRawModel(ModelBuilderRequest request);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Sat Sep 28 09:03:24 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultSessionFactory.java

            this.mavenRepositorySystem = mavenRepositorySystem;
            this.lookup = lookup;
            this.runtimeInformation = runtimeInformation;
        }
    
        public InternalSession newSession(MavenSession mavenSession) {
            InternalSession session = new DefaultSession(
                    mavenSession, repositorySystem, null, mavenRepositorySystem, lookup, runtimeInformation);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/ProtoSession.java

            return session;
        }
    
        record Context(Map<String, String> userProperties, Map<String, String> systemProperties) {}
    
        @Override
        protected Session newSession(RepositorySystemSession session, List<RemoteRepository> repositories) {
            return new ProtoSession(
                    session, repositorySystem, repositories, null, lookup, new Context(userProperties, systemProperties));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  7. compat/maven-compat/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java

            File localRepo = new File(request.getLocalRepository().getBasedir());
            DefaultRepositorySystemSession session = MavenRepositorySystemUtils.newSession();
            session.setLocalRepositoryManager(new LegacyLocalRepositoryManager(localRepo));
            request.setRepositorySession(session);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. compat/maven-compat/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java

                    projectBuildingRequest.getRepositorySession(),
                    mavenExecutionRequest,
                    new DefaultMavenExecutionResult());
    
            InternalSession iSession = defaultSessionFactory.newSession(mSession);
            mSession.setSession(iSession);
    
            SessionScope sessionScope = getContainer().lookup(SessionScope.class);
            sessionScope.enter();
            sessionScope.seed(MavenSession.class, mSession);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. compat/maven-embedder/src/main/java/org/apache/maven/cli/internal/BootstrapCoreExtensionManager.java

                    List<org.apache.maven.api.RemoteRepository> repositories) {
                super(session, repositorySystem, repositories, null, null, null);
            }
    
            @Override
            protected Session newSession(
                    MavenSession mavenSession, List<org.apache.maven.api.RemoteRepository> repositories) {
                return new SimpleSession(mavenSession, getRepositorySystem(), repositories);
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  10. compat/maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java

                            getContainer().lookup(MavenRepositorySystem.class),
                            new DefaultLookup(getContainer()),
                            getContainer().lookup(RuntimeInformation.class))
                    .newSession(session));
    
            legacySupport.setSession(session);
        }
    
        protected abstract String component();
    
        /**
         * Return an existing file, not a directory - causes creation to fail.
         *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.8K bytes
    - Viewed (0)
Back to top