Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 82 for setSession (0.11 sec)

  1. compat/maven-compat/src/test/java/org/apache/maven/repository/LegacyRepositorySystemTest.java

            MavenSession mavenSession =
                    new MavenSession(container, session, mavenExecutionRequest, new DefaultMavenExecutionResult());
            legacySupport.setSession(mavenSession);
            InternalSession iSession = new DefaultSession(
                    mavenSession,
                    null,
                    null,
                    null,
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java

                session.setSession(defaultSessionFactory.newSession(session));
    
                sessionScope.seed(MavenSession.class, session);
                sessionScope.seed(Session.class, session.getSession());
                sessionScope.seed(InternalMavenSession.class, InternalMavenSession.from(session.getSession()));
    
                legacySupport.setSession(session);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 27.5K bytes
    - Viewed (1)
  3. compat/maven-compat/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java

            public ProjectBuilder setArtifactId(String artifactId) {
                project.setArtifactId(artifactId);
                return this;
            }
    
            public ProjectBuilder setVersion(String version) {
                project.setVersion(version);
                return this;
            }
    
            // Dependencies
            //
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java

            MavenSession session = new MavenSession(
                    getContainer(), repoSession, new DefaultMavenExecutionRequest(), new DefaultMavenExecutionResult());
            session.setSession(new DefaultSessionFactory(
                            getContainer().lookup(RepositorySystem.class),
                            getContainer().lookup(MavenRepositorySystem.class),
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java

        @Deprecated
        public Map<String, Object> lookupMap(String role) throws ComponentLookupException {
            return container.lookupMap(role);
        }
    
        public Session getSession() {
            return session;
        }
    
        public void setSession(Session session) {
            this.session = session;
        }
        /*end[MAVEN4]*/
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/plugin/internal/DefaultPluginManager.java

            MavenSession session = legacySupport.getSession();
    
            if (plugin.getVersion() == null) {
                PluginVersionRequest versionRequest = new DefaultPluginVersionRequest(
                        plugin, session.getRepositorySession(), project.getRemotePluginRepositories());
                plugin.setVersion(pluginVersionResolver.resolve(versionRequest).getVersion());
            }
    
            try {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

                managedDependencies = dependencyManagement == null ? null : dependencyManagement.getDependencies();
                MavenSession session = legacySupport.getSession();
                if (session != null) {
                    pomRepositories = session.getProjects().stream()
                            .filter(p -> artifact.equals(p.getArtifact()))
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/BuildModelSourceTransformer.java

                }
            }
        }
    
        //
        // CI friendly versions
        //
        void handleCiFriendlyVersion(TransformerContext context, Model model) {
            String version = model.getVersion();
            String modVersion = replaceCiFriendlyVersion(context, version);
            model.setVersion(modVersion);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/internal/aether/ReverseTreeRepositoryListener.java

            boolean missing = event.getFile() == null;
            if (missing) {
                // missing artifact - let's track the path anyway
                File dir = event.getSession().getLocalRepository().getBasedir();
                dir = new File(
                        dir, event.getSession().getLocalRepositoryManager().getPathForLocalArtifact(event.getArtifact()));
                trackingDir = dir.getParentFile().toPath().resolve(".tracking");
            } else {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  10. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java

                cacheKey = new Key(session, request);
    
                Object obj = cache.get(session, cacheKey);
                if (obj instanceof Record) {
                    Record record = (Record) obj;
                    result.setVersion(record.version);
                    result.setRepository(
                            getRepository(session, request.getRepositories(), record.repoClass, record.repoId));
                    return result;
                }
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 20.3K bytes
    - Viewed (0)
Back to top