Eclipse 不会在 dropins 文件夹中加载插件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1489648/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse doesn't load plugins in the dropins folder
提问by rancidfishbreath
I just downloaded Eclipse SDK 3.5.1 and want to install some add ons such as GEF, EMF, etc.
我刚刚下载了 Eclipse SDK 3.5.1 并想安装一些附加组件,例如 GEF、EMF 等。
I downloaded all the zip files for everything I needed and decided to install them in the dropins folder. I read http://wiki.eclipse.org/Equinox_p2_Getting_Startedand structured my dropin folder as specified:
我下载了我需要的所有 zip 文件,并决定将它们安装在 dropins 文件夹中。我阅读了http://wiki.eclipse.org/Equinox_p2_Getting_Started并按照指定的方式构建了我的 dropin 文件夹:
eclipse/
dropins/
emf/
eclipse/
features/
plugins/
gef/
eclipse/
features/
plugins/
... etc ...
When I start up Eclipse it does not recognize any of the features or plugins I have put into the structure above. Any ideas?
当我启动 Eclipse 时,它无法识别我已放入上述结构中的任何功能或插件。有任何想法吗?
采纳答案by Yoni
I suggest that you try to install those features via the update manager. EMF and GEF are standard features from Eclipse.org, there's no reason not to install them in Eclipse's main p2 repository folder (it is easy to uninstall them, in case that is your concern).
我建议您尝试通过更新管理器安装这些功能。EMF 和 GEF 是 Eclipse.org 的标准功能,没有理由不将它们安装在 Eclipse 的主要 p2 存储库文件夹中(很容易卸载它们,以防万一)。
Have a look at the error log view (Window -> Show View -> Error Log) to see why they didn't load. My guess is that they are missing a dependency, but without more information it is difficult to answer your question. I also suggest looking at Help -> About Eclipse -> Installation Details to see what exactly is installed.
查看错误日志视图(窗口 -> 显示视图 -> 错误日志)以了解它们未加载的原因。我的猜测是他们缺少依赖项,但没有更多信息就很难回答你的问题。我还建议查看 Help -> About Eclipse -> Installation Details 以查看究竟安装了什么。
回答by kc2001
This is probably a bit late to help you, but maybe it will help somebody else. I had a similar problem, so I posted a question to the Eclipse Community Forums asking about how to get a report about missing dependencies. Mickael Istria's helpful reply is shown below for those who aren't members of that forum:
这对你的帮助可能有点晚了,但也许它会帮助其他人。我遇到了类似的问题,所以我在 Eclipse 社区论坛上发布了一个问题,询问如何获取有关缺少依赖项的报告。对于非该论坛成员的人,Mickael Istria 的有用回复如下所示:
You can start or diag the OSGi Console and try to start the bundle manually. The console will print you some warnings. See http://eclipse.org/equinox/documents/quickstart.phpand for more details.
您可以启动或诊断 OSGi 控制台并尝试手动启动包。控制台会向您打印一些警告。有关更多详细信息,请参阅http://eclipse.org/equinox/documents/quickstart.php。
shell> eclipse -console
[...Eclipse starts up...]
osgi> diag your.unresolved.bundle
[...shows you unresolved constraints...]
In my case, I tried several directory structures that I thought should work, before I found one that did:
就我而言,我尝试了几种我认为应该可以工作的目录结构,然后才找到了一种:
dropins/
myPlugin
plugins/
depPluginDir1/*
depPluginDir2/*
Coming back years later to solve a similar problem..., I found the following web pages to be helpful: Where is My Bundle, Plug-ins are not picked up from the dropins/ folder.
几年后回来解决类似的问题......,我发现以下网页很有帮助:我的捆绑包在哪里,插件没有从 dropins/ 文件夹中提取。
回答by studgeek
First of all, run eclipse with -clean to ensure p2 fully rescans the dropins directory and sees your plugins.
首先,使用 -clean 运行 eclipse 以确保 p2 完全重新扫描 dropins 目录并查看您的插件。
If it still doesn't load you can use p2 debugging to see what the problem is also. For some strange reason p2 doesn't log dropins issues unless you explicitly turn it on with the following steps:
如果它仍然没有加载,您可以使用 p2 调试来查看问题所在。出于某种奇怪的原因,p2 不会记录 dropins 问题,除非您通过以下步骤明确打开它:
Create an .options
file in the eclipse
folder where you start up Eclipse with the following content:
.options
在eclipse
启动 Eclipse的文件夹中创建一个文件,内容如下:
org.eclipse.equinox.p2.core/debug=true
org.eclipse.equinox.p2.core/reconciler=true
Then run eclipse with the following arguments (last argument is the path to the .options file you just created):
然后使用以下参数运行 eclipse(最后一个参数是您刚刚创建的 .options 文件的路径):
eclipse -clean -console -consoleLog -debug /path/to/.options
PS, I have created this bugzillato request it be turned on as a default. You can vote/track making this logging the default there.
PS,我创建了这个 bugzilla来请求它作为默认打开。您可以投票/跟踪将此日志记录设置为默认记录。
PPS, @kc2001's suggestion is a good one also once you have narrowed down on what plugin has the issue and you want to troubleshoot it more.
PPS,@kc2001 的建议也是一个很好的建议,一旦您缩小了有问题的插件的范围并且想要更多地对其进行故障排除。
Some relevant links:
一些相关链接:
回答by vwegert
Something that has just solved this very same issue for me: start eclipse with the command line parameters -clean -console -consoleLog. The weird thing: with -clean -console, it didn't work. Only after I added -consoleLog, the bundles were recognized.
刚刚为我解决了同样问题的东西:使用命令行参数 -clean -console -consoleLog 启动 eclipse。奇怪的是:使用 -clean -console,它不起作用。只有在我添加 -consoleLog 之后,这些包才能被识别。
回答by Robert C
This ended up being an issue with Eclipse for me. Placing the plugin jar in each of the folders suggested, running as admin, etc. didn't work.
对我来说,这最终成为 Eclipse 的一个问题。将插件 jar 放在建议的每个文件夹中,以管理员身份运行等都不起作用。
What did solve it was downgrading from a Juno package to Indigo. You can find older versions of Eclipse here.
解决它的是从 Juno 包降级到 Indigo。您可以在此处找到旧版本的 Eclipse 。
回答by Zoltán Ujhelyi
The local archive plug-ins work if you have downloaded an update site plug-in. In that case the dropins might not work.
如果您下载了更新站点插件,则本地存档插件会起作用。在这种情况下,dropins 可能不起作用。
About the dropin structure, it always worked for me, but I never use the eclipse folder inside my own ones, only the plugins and features. Did you extract the zip file to that structure?
关于 dropin 结构,它总是对我有用,但我从不使用我自己的 eclipse 文件夹,只使用插件和功能。您是否将 zip 文件解压缩到该结构?
If yes, it should be worth checking the Error log after Eclipse started, there might be some unresolved dependecies listed.
如果是,应该在 Eclipse 启动后检查错误日志,可能会列出一些未解决的依赖项。
回答by Ben S
Don't place the zip
files manually like that.
不要zip
像那样手动放置文件。
Use the wizard within Eclipse to install a local archive plug-in.
使用 Eclipse 中的向导安装本地归档插件。