Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for setProjects (0.14 sec)

  1. impl/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java

         */
        private final ConcurrentMap<String, ConcurrentMap<String, ConcurrentMap<String, Object>>>
                pluginContextsByProjectAndPluginKey = new ConcurrentHashMap<>();
    
        public void setProjects(List<MavenProject> projects) {
            if (!projects.isEmpty()) {
                MavenProject first = projects.get(0);
                this.currentProject = ThreadLocal.withInitial(() -> first);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java

            InternalMavenSession mSession = InternalMavenSession.from(iSession);
            MavenSession session = mSession.getMavenSession();
    
            session.setProjects(projects);
            session.setAllProjects(session.getProjects());
    
            return session;
        }
    
        protected void initRepoSession(
                MavenExecutionRequest mavenExecutionRequest, ProjectBuildingRequest projectBuildingRequest)
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java

                    return result;
                }
    
                result.setTopologicallySortedProjects(session.getProjects());
    
                result.setProject(session.getTopLevelProject());
    
                validatePrerequisitesForNonMavenPluginProjects(session.getProjects());
    
                validateRequiredProfiles(session, request.getProfileActivation());
                if (session.getResult().hasExceptions()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 27.5K bytes
    - Viewed (1)
  4. impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java

                }
            }
            return allProjects;
        }
    
        private Map<String, Map<String, Map<String, MavenProject>>> getProjects() {
            // compute the projects mapping
            if (projects == null) {
                List<MavenProject> projects = session.getProjects();
                if (projects != null) {
                    Map<String, Map<String, Map<String, MavenProject>>> map = new HashMap<>();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/graph/DefaultGraphBuilder.java

            if (session.getProjectDependencyGraph() != null || session.getProjects() != null) {
                ProjectDependencyGraph graph = new DefaultProjectDependencyGraph(session.getAllProjects());
                if (session.getProjects() != null) {
                    graph = new FilteredProjectDependencyGraph(graph, session.getProjects());
                }
    
                result = Result.success(graph);
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  6. compat/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java

            if (logger.isInfoEnabled() && event.getSession().getProjects().size() > 1) {
                init();
                infoLine('-');
    
                infoMain("Reactor Build Order:");
    
                logger.info("");
    
                final List<MavenProject> projects = event.getSession().getProjects();
                for (MavenProject project : projects) {
                    int len = lineLength
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  7. compat/maven-embedder/src/test/java/org/apache/maven/cli/event/ExecutionEventLoggerTest.java

            MavenProject project3 = generateMavenProject("Apache Maven Embedder 3");
    
            MavenSession session = mock(MavenSession.class);
            when(session.getProjects()).thenReturn(List.of(project1, project2, project3));
            when(session.getAllProjects()).thenReturn(List.of(project1, project2, project3));
    
            ExecutionEvent sessionStartedEvent = mock(ExecutionEvent.class);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/ProtoSession.java

            return null;
        }
    
        @Override
        public Path getRootDirectory() {
            throw new IllegalStateException();
        }
    
        @Override
        public List<Project> getProjects() {
            return List.of();
        }
    
        @Override
        public Map<String, Object> getPluginContext(Project project) {
            throw new UnsupportedInStandaloneModeException();
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

                MavenSession session = legacySupport.getSession();
                if (session != null) {
                    pomRepositories = session.getProjects().stream()
                            .filter(p -> artifact.equals(p.getArtifact()))
                            .map(MavenProject::getRemoteArtifactRepositories)
                            .findFirst()
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/Session.java

        Path getRootDirectory();
    
        /**
         * Retrieves a list of projects associated with the session.
         *
         * @return a list of projects, never {@code null}
         */
        @Nonnull
        List<Project> getProjects();
    
        /**
         * Returns the plugin context for mojo being executed and the specified
         * {@link Project}, never returns {@code null} as if context not present, creates it.
         *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 16:43:07 UTC 2024
    - 36.4K bytes
    - Viewed (0)
Back to top