理清 Eclipse 中的依赖循环
我正在尝试将插件功能导出为 eclipse 中的 webstart。设置 feature.xml 并运行导出向导后,当我单击“完成”时,出现以下错误:
A cycle was detected when generating the classpath org.pathvisio.core_2.0.11, org.pathvisio.batik.codec_1.7.0, org.pathvisio.batik.transcoder_1.7.0, org.pathvisio.pdftranscoder_1.7.0, pvplugins-bridgedbSettings_1.0.0.201106291012, org.pathvisio.core_2.0.11.
问题是,我不知道这个循环到底在哪里。所以我的问题是:如何找出哪个插件导致了循环依赖?有没有什么工具可以帮助分析依赖问题?
I'm trying to export a plug-in feature as webstart in eclipse. After setting up feature.xml, and running the export wizard, when I click finish I get the following error:
A cycle was detected when generating the classpath org.pathvisio.core_2.0.11, org.pathvisio.batik.codec_1.7.0, org.pathvisio.batik.transcoder_1.7.0, org.pathvisio.pdftranscoder_1.7.0, pvplugins-bridgedbSettings_1.0.0.201106291012, org.pathvisio.core_2.0.11.
The trouble is, I have no idea where this cycle is exactly. So my question is: how do I find out which plug-in is causing the cyclic dependency? Are there any tools to help analyse dependency problems?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
上面的消息列出了构成周期元素的确切插件。它不是一个单独的插件负责循环;它是列出的一组插件...因此 org.pathvisio.core 依赖于 org.pathvisio.batik.codec ,而 org.pathvisio.batik.codec 又依赖于...
当您尝试了解依赖项时,请记住包括已安装的插件计算中的片段:-)
为了可视化依赖关系,我通常打开其中一个插件的 PDE 编辑器,转到“依赖关系”页面,在右下角部分,您有许多可以帮助您的工具- 在这种情况下主要“看对于依赖图中的循环”。
The message above lists the exact plug-ins that makes up the elements of the cycle. It is not a single plug-in that is responsible for the cycle; it is the listed set of plug-ins... So org.pathvisio.core has a dependency on org.pathvisio.batik.codec which has a dependency on...
When you try to understand the dependencies, remember to include the installed fragments in the calculations :-)
To visualize the dependencies, I usually open the PDE editor of one of the plug-ins, go to the "Dependencies" page, in the botton-right section you have a number of tools that can help you - in this case primary "Look for cycles in the dependency graph".
生成类路径时检测到循环
这意味着某个地方有一个插件 A 需要插件 B,插件 B 需要插件 C。插件 C 需要插件 A。
找到并修复这个问题!
A cycle was detected when generating the classpath
It means that somewhere you have a plugin A requiring plugin B and plugin B requiring plugin C. plugin C requiring plugin A.
Find and fix this!