org.apache.maven.BuildFailureException: The projects in the reactor contain a cyclic reference: Edge between 'Vertex{label='com.myorg:module2'}' and 'Vertex{label='com.myorg:module1'}' introduces to cycle in the graph com.myorg:module1 --> com.myorg:module2 --> com.myorg:module1

Stack Overflow | user977208 | 4 years ago
  1. 0

    Maven says I have a cyclic reference in multi-module project but can't figure out why

    Stack Overflow | 4 years ago | user977208
    org.apache.maven.BuildFailureException: The projects in the reactor contain a cyclic reference: Edge between 'Vertex{label='com.myorg:module2'}' and 'Vertex{label='com.myorg:module1'}' introduces to cycle in the graph com.myorg:module1 --> com.myorg:module2 --> com.myorg:module1
  2. 0

    failed to compile examples

    GitHub | 1 year ago | replyxf
    org.apache.maven.BuildFailureException: The projects in the reactor contain a cyclic reference: Edge between 'Vertex{label='net.schmizz:sshj'}' and 'Vertex{label='net.schmizz:sshj'}' introduces to cycle in the graph net.schmizz:sshj --> net.schmizz:sshj

    Root Cause Analysis

    1. hidden.org.codehaus.plexus.util.dag.CycleDetectedException

      Edge between 'Vertex{label='com.myorg:module2'}' and 'Vertex{label='com.myorg:module1'}' introduces to cycle in the graph com.myorg:module1 --> com.myorg:module2 --> com.myorg:module1

      at hidden.org.codehaus.plexus.util.dag.DAG.addEdge()
    2. hidden.org.codehaus
      DAG.addEdge
      1. hidden.org.codehaus.plexus.util.dag.DAG.addEdge(DAG.java:143)
      2. hidden.org.codehaus.plexus.util.dag.DAG.addEdge(DAG.java:123)
      2 frames
    3. Maven
      ProjectSorter.<init>
      1. org.apache.maven.project.ProjectSorter.<init>(ProjectSorter.java:118)
      1 frame
    4. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.execution.ReactorManager.<init>(ReactorManager.java:99)
      2. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:288)
      3. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
      3 frames
    5. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
      1 frame
    6. org.apache.maven
      CompatibleMain.main
      1. org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
      1 frame
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    8. Plexus
      Launcher.main
      1. org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      2. org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      3. org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      4. org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      4 frames