Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for getAllProjects (0.37 sec)

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

        @Override
        public Optional<Path> getPath(@Nonnull Artifact artifact) {
            String id = id(nonNull(artifact, "artifact"));
            if (session.getMavenSession().getAllProjects() != null) {
                for (MavenProject project : session.getMavenSession().getAllProjects()) {
                    if (id.equals(id(project.getArtifact()))
                            && project.getArtifact().getFile() != null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. 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)
  3. impl/maven-core/src/main/java/org/apache/maven/graph/FilteredProjectDependencyGraph.java

                    .filter(this.whiteList::containsKey)
                    .toList();
        }
    
        /**
         * @since 3.5.0
         */
        @Override
        public List<MavenProject> getAllProjects() {
            return this.projectDependencyGraph.getAllProjects();
        }
    
        @Override
        public List<MavenProject> getSortedProjects() {
            return new ArrayList<>(sortedProjects);
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java

        }
    
        // groupId -> (artifactId -> (version -> project)))
        private Map<String, Map<String, Map<String, MavenProject>>> getAllProjects() {
            // compute the projects mapping
            if (allProjects == null) {
                List<MavenProject> allProjects = session.getAllProjects();
                if (allProjects != 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/DefaultMaven.java

                    addExceptionToResult(result, session.getResult().getExceptions().get(0));
                    persistResumptionData(result, session);
                    return result;
                } else {
                    session.getAllProjects().stream()
                            .filter(MavenProject::isExecutionRoot)
                            .findFirst()
                            .ifPresent(buildResumptionDataRepository::removeResumptionData);
                }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 27.5K bytes
    - Viewed (1)
  6. impl/maven-core/src/main/java/org/apache/maven/execution/ProjectDependencyGraph.java

     */
    public interface ProjectDependencyGraph {
    
        /**
         * Gets all collected projects.
         *
         * @return All collected projects.
         *
         * @since 3.5.0
         */
        List<MavenProject> getAllProjects();
    
        /**
         * Gets all projects in their intended build order, i.e. after topologically sorting the projects according to their
         * interdependencies.
         *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. compat/maven-embedder/src/test/java/org/apache/maven/cli/event/ExecutionEventLoggerTest.java

            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);
            when(sessionStartedEvent.getSession()).thenReturn(session);
    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-core/src/main/java/org/apache/maven/graph/DefaultProjectDependencyGraph.java

                this.projects.put(id, project);
                this.order.put(project, index);
            }
        }
    
        /**
         * @since 3.5.0
         */
        public List<MavenProject> getAllProjects() {
            return this.allProjects;
        }
    
        public List<MavenProject> getSortedProjects() {
            return new ArrayList<>(sorter.getSortedProjects());
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. compat/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java

                    logger.info("{}{}[{}]", project.getName(), chars(' ', (len > 0) ? len : 1), project.getPackaging());
                }
    
                final List<MavenProject> allProjects = event.getSession().getAllProjects();
    
                currentVisitedProjectCount = allProjects.size() - projects.size();
                totalProjects = allProjects.size();
            }
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java

        public void setProjectMap(Map<String, MavenProject> projectMap) {
            this.projectMap = projectMap;
        }
    
        /** This is a provisional method and may be removed */
        public List<MavenProject> getAllProjects() {
            return allProjects;
        }
    
        /** This is a provisional method and may be removed */
        public void setAllProjects(List<MavenProject> allProjects) {
            this.allProjects = allProjects;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top