Debugging Maven/JUnit Plugins Issue - Cycle Dependency

21 views
Skip to first unread message

janpridal

unread,
Mar 15, 2016, 12:24:20 PM3/15/16
to jenkin...@googlegroups.com
Hello,
I tried to follow the instructions for debugging Jenkins plugins given here.
https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial#Plugintutorial-DebuggingaPlugin

I cloned the Git repo for JUnit (and later Maven) Jenkins plugin, starting
the Jenkins from cloned repository with mvnDebug hpi:run command (Maven
3.3.3, JDK 1.8.0_74).

https://github.com/jenkinsci/junit-plugin
https://github.com/jenkinsci/maven-plugin

Jenkins eventually starts but there's an issue with plugins cycle
dependency, so the plugin that I wish to debug is always disabled:

INFO: Started initialization
B?e 11, 2016 10:29:43 DOP. hudson.PluginManager$1$3$1 isDuplicate
INFO: Ignoring E:\git\junit-plugin\.\work\plugins\junit.jpi because
E:\git\junit-plugin\.\work\plugins\junit.hpl is already loaded
B?e 11, 2016 10:29:44 DOP. hudson.PluginManager$1$3$2$1 reactOnCycle
SEVERE: found cycle in plugin dependencies: (root=Plugin:junit, deactivating
all involved) Plugin:junit -> Plugin:matrix-project -> Plugin:junit

Similarly for Maven plugin (when starting the debuggin from Maven Jenkins
plugin cloned repository):

INFO: Started initialization
B?e 11, 2016 10:40:13 DOP. hudson.PluginManager$1$3$1 isDuplicate
INFO: Ignoring E:\git\maven-plugin\.\work\plugins\maven-plugin.jpi because
E:\git\maven-plugin\.\work\plugins\maven-plugin.hpl is already loaded
B?e 11, 2016 10:40:13 DOP. hudson.PluginManager$1$3$2$1 reactOnCycle
SEVERE: found cycle in plugin dependencies: (root=Plugin:maven-plugin,
deactivating all involved) Plugin:maven-plugin -> Plugin:promoted-builds ->
Plugin:maven-
plugin

I was not able to find some solution online, could I ask you kindly for a
help here in this forum?

Thank you,
Jan Pridal



--
View this message in context: http://jenkins-ci.361315.n4.nabble.com/Debugging-Maven-JUnit-Plugins-Issue-Cycle-Dependency-tp4799641.html
Sent from the Jenkins dev mailing list archive at Nabble.com.

Jesse Glick

unread,
Mar 16, 2016, 6:34:52 PM3/16/16
to Jenkins Dev
On Tue, Mar 15, 2016 at 8:40 AM, janpridal <jan.p...@gmail.com> wrote:
> Jenkins eventually starts but there's an issue with plugins cycle
> dependency, so the plugin that I wish to debug is always disabled

JENKINS-28942 would help fix this. In the meantime, just declaring a
newer core dependency version can help.

In the case of `junit-plugin`,
https://github.com/jenkinsci/junit-plugin/pull/40 might fix this, let
me check.

Jesse Glick

unread,
Mar 16, 2016, 7:24:12 PM3/16/16
to Jenkins Dev
Reply all
Reply to author
Forward
0 new messages