Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for CycleDetectedException (0.12 sec)

  1. impl/maven-core/src/main/java/org/apache/maven/graph/DefaultProjectDependencyGraph.java

         *
         * @param projects The projects to create the dependency graph with
         * @throws DuplicateProjectException
         * @throws CycleDetectedException
         */
        public DefaultProjectDependencyGraph(Collection<MavenProject> projects)
                throws CycleDetectedException, DuplicateProjectException {
            this(projects, projects);
        }
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/ProjectCycleException.java

     * under the License.
     */
    package org.apache.maven;
    
    import org.apache.maven.project.CycleDetectedException;
    
    /**
     */
    public class ProjectCycleException extends BuildFailureException {
        public ProjectCycleException(String message) {
            super(message);
        }
    
        public ProjectCycleException(String message, CycleDetectedException cause) {
            super(message, cause);
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/internal/impl/Graph.java

        }
    
        void addEdge(Vertex from, Vertex to) throws CycleDetectedException {
            from.children.add(to);
            to.parents.add(from);
            List<String> cycle = findCycle(to);
            if (cycle != null) {
                // remove edge which introduced cycle
                removeEdge(from, to);
                throw new CycleDetectedException(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/Graph.java

        synchronized void addEdge(String from, String to) throws CycleDetectedException {
            if (graph.computeIfAbsent(from, l -> new HashSet<>()).add(to)) {
                List<String> cycle = visitCycle(graph, Collections.singleton(to), new HashMap<>(), new LinkedList<>());
                if (cycle != null) {
                    // remove edge which introduced cycle
                    throw new CycleDetectedException(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/graph/DefaultGraphBuilder.java

    import org.apache.maven.model.Plugin;
    import org.apache.maven.model.building.DefaultModelProblem;
    import org.apache.maven.model.building.Result;
    import org.apache.maven.project.CycleDetectedException;
    import org.apache.maven.project.DuplicateProjectException;
    import org.apache.maven.project.MavenProject;
    import org.apache.maven.project.ProjectBuildingException;
    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-model-builder/src/test/java/org/apache/maven/model/building/GraphTest.java

    import static org.junit.jupiter.api.Assertions.assertThrows;
    
    public class GraphTest {
    
        @Test
        void testCycle() throws Graph.CycleDetectedException {
            Graph graph = new Graph();
            graph.addEdge("a1", "a2");
            assertThrows(Graph.CycleDetectedException.class, () -> graph.addEdge("a2", "a1"));
        }
    
        @Test
        public void testPerf() throws IOException {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/execution/ReactorManager.java

    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;
    
    import org.apache.maven.artifact.ArtifactUtils;
    import org.apache.maven.plugin.descriptor.PluginDescriptor;
    import org.apache.maven.project.CycleDetectedException;
    import org.apache.maven.project.DuplicateProjectException;
    import org.apache.maven.project.MavenProject;
    import org.apache.maven.project.ProjectSorter;
    
    /**
     * ReactorManager - unused
     */
    @Deprecated
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultTransformerContextBuilder.java

        private boolean addEdge(Path from, Path p, DefaultModelProblemCollector problems) {
            try {
                dag.addEdge(from.toString(), p.toString());
                return true;
            } catch (Graph.CycleDetectedException e) {
                problems.add(new DefaultModelProblem(
                        "Cycle detected between models at " + from + " and " + p,
                        ModelProblem.Severity.FATAL,
                        null,
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top