什么可能导致 Eclipse 忽略 dropins 目录中的插件?
What could cause Eclipse to ignore plugins in the dropins catalog?
我已经基于 Eclipse 向导创建了一个虚拟插件,并将其导出到一个 jar 中.将其放入全新 Eclipse 安装的插件目录中时,它可以正常工作.
I've created a dummyplugin based on the Eclipse wizard, exported it to a jar. When dropping it into the drop-ins catalog of a fresh Eclipse installation, it works fine.
当我在自定义 Eclipse 安装上做同样的事情时,它不起作用.该插件甚至不会出现在插件注册表视图中.没有错误消息或类似的东西.
When I do the same thing but on a custom Eclipse installation, it doesn't work. The plugin doesn't even show up in the plugin registry view. No error messages or anything like that.
我试过了:
是否可以定义 Eclipse 应该忽略 dropins 目录?怎么样?
Is it possible to define that Eclipse should ignore the dropins catalog? How?
Eclipse 的自定义版本定义了很多变量,但似乎与 p2 或 dropins 的行为无关.
The custom version of Eclipse defines a lot of variables, but nothing that seems related to p2 or the behaviour of dropins.
dropins/文件夹是尽最大努力,完全可选,默默地失败遗留遗留物.正如您所发现的那样,诊断并不重要.
The dropins/ folder is a best effort, totally optional, silently failing legacy leftover. Not big on the diagnostics, as you've found.
如果您使用 director 将您的 bundle 安装到您的自定义 eclipse 中,至少您将能够收到一条错误消息,告诉您问题所在.
If you use the director to install your bundle into your custom eclipse, at least you'll be able to get an error message that will tell you what the problem is.
我建议使用一些最小的 p2 元数据导出您的 jar.
I'd suggest exporting your jar with some minimal p2 metadata.
然后你使用类似的东西:
Then you use something like:
eclipse/eclipse
-application org.eclipse.equinox.p2.director
-noSplash
-repository
file://$HOME/eclipseUpdate
-installIUs
org.dojotoolkit/1.6.1.v201105210659
如果 p2 找不到某些依赖项,它应该会吐出它可能生成的令人困惑的错误消息.
If p2 can't find some dependency, it should spew out the confusing error messages it can generate.
这篇关于未找到 dropins-catalog 中的插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!