Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-10370

Cycle detected when running "mvn hpi:run" in CVS- and Subversion-plugin

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Maven 2.2.1 or Maven 3.0.3

      The following error occurs, when "mvn hpi:run" is called in the CVS-plug-in:

      hudson.util.CyclicGraphDetector$CycleDetectedException:
      Cycle detected: Plugin:cvs -> Plugin:subversion -> Plugin:cvs
      

      Pretty much the same happens with the Subversion-plug-in:

      hudson.util.CyclicGraphDetector$CycleDetectedException:
      Cycle detected: Plugin:subversion -> Plugin:subversion 
      

      The problem seems to lie in the dependency of these plugins on the jenkins-test-harness
      which in turn has a dependency on the Subversion-plug-in.

      A workaround is to exclude the Subversion-plug-in in the pom.xml of the CVS-plug-in or the Subversion-plug-in:

          <dependency>
          	<groupId>org.jenkins-ci.main</groupId>
          	<artifactId>jenkins-test-harness</artifactId>
          	<version>1.399</version>
          	<type>stapler-jar</type>
          	<scope>compile</scope>
          	<exclusions>
          		<exclusion>
          			<artifactId>subversion</artifactId>
          			<groupId>org.jenkins-ci.plugins</groupId>
          		</exclusion>
          		<exclusion>
          			<artifactId>subversion</artifactId>
          			<groupId>org.jvnet.hudson.plugins</groupId>
          		</exclusion>
          	</exclusions>
          </dependency>
      

      Apparently the Subversion-plug-in is not needed in the test harness at the moment, any tests that
      are related to Subversion are commented out!

      Can the dependency on the Subversion-plug-in be removed permanently from the jenkins-test-harness?
      Or is the workaround a possible permanent fix?
      Are there any other ways to fix this problem?

          [JENKINS-10370] Cycle detected when running "mvn hpi:run" in CVS- and Subversion-plugin

          Fred G created issue -
          Michael Clarke made changes -
          Assignee New: Michael Clarke [ mc1arke ]
          Michael Clarke made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Michael Clarke made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 140562 ] New: JNJira + In-Review [ 189122 ]

            mc1arke Michael Clarke
            fredg Fred G
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: