Java 在 Eclipse Luna 中安装插件时,日志中出现“无法获取 PluginConverter 服务”和“未找到存储库”错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18767831/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-12 10:52:44  来源:igfitidea点击:

While installing plugin in Eclipse Luna, "Unable to acquire PluginConverter service" and "No repository found" errors appear in logs

javaeclipseeclipse-plugin

提问by Daud

I am using Lunaversion of Eclipse EEeclipse-jee-luna-M1-win32-x86_64 and trying to place the tomcat plugin (EclipseTotale- com.sysdeo.eclipse.tomcat_3.3.0) inside the dropins folder. When the tomcat icons didn't show up, I checked the eclipse logs, and it showed :

我使用Luna的版本Eclipse EEEclipse的JEE-月神-M1-Win32的64位x86和努力放在Tomcat插件(EclipseTotale-中的dropins文件夹内com.sysdeo.eclipse.tomcat_3.3.0)。当tomcat图标没有出现时,我检查了eclipse日志,它显示:

!ENTRY org.eclipse.equinox.p2.publisher.eclipse 4 0 2013-09-12 20:19:53.571
!MESSAGE Unable to acquire PluginConverter service during generation for: C:\Programs\eclipse-jee-luna-M1-win32-x86_64\eclipse\dropins\com.sysdeo.eclipse.tomcat_3.3.0.

!ENTRY org.eclipse.equinox.p2.core 4 0 2013-09-12 20:19:53.581
!MESSAGE Provisioning exception
!STACK 1
org.eclipse.equinox.p2.core.ProvisionException: No repository found at file:/C:/Programs/eclipse-jee-luna-M1-win32-x86_64/eclipse/dropins/com.sysdeo.eclipse.tomcat_3.3.0/.
    at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.fail(AbstractRepositoryManager.java:395)
    at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:692)

The same plugin used to work perfectly for Juno(and Kepler). Any ideas ?

同一个插件曾经完美地适用于Juno(和Kepler)。有任何想法吗 ?

回答by nitind

For individual plug-ins, put them in dropins/plugins, not dropins directly.

对于单个插件,将它们放在 dropins/plugins 中,而不是直接放在 dropins 中。

回答by Dan Dar3

I think the cause is to be found in this Eclipse 4.4 Luna change, which went into M1. https://bugs.eclipse.org/bugs/show_bug.cgi?id=407312

我认为原因可以在进入 M1 的这个 Eclipse 4.4 Luna 更改中找到。 https://bugs.eclipse.org/bugs/show_bug.cgi?id=407312

For Luna we are considering removing the plugin converter support that allowed Eclipse 2.0 old-style plugins to run unchanged. There types of plugins have no OSGi bundle manifest (only a plugin/fragment xml file).

对于 Luna,我们正在考虑删除插件转换器支持,该支持允许 Eclipse 2.0 旧式插件以不变的方式运行。有些类型的插件没有 OSGi 包清单(只有插件/片段 xml 文件)。

Have contacted Sysdeo and Bruno Leroux was kind to provide an updated package which seems to work fine with Eclipse 4.4 RC3 (plugin v3.3.1) although he had no plans to support development for the plugin any further (12 years old). He's also waiting for feedback from other two other users and then he'll make the updated publicly available.

已经联系了 Sysdeo,Bruno Leroux 很乐意提供一个更新的包,该包似乎可以与 Eclipse 4.4 RC3(插件 v3.3.1)一起正常工作,尽管他没有计划进一步支持该插件的开发(12 岁)。他还在等待其他两个用户的反馈,然后他将公开更新。

~~~

~~~

Version 3.3.1 of the plugin to support Eclipse 4.4 Luna is now publicly available. http://www.eclipsetotale.com/tomcatPlugin.html

支持 Eclipse 4.4 Luna 的插件 3.3.1 版现已公开发布。 http://www.eclipsetotale.com/tomcatPlugin.html

回答by user2140921

For anyone trying to fix this problem. I used the eclipse plugin converter on this plugin which creates a META-INF/MANIFEST.MF file from the old plugin.xml file. This makes the above error disappear, however the plugin still does not work, but now there is no error message in the eclipse logs... I know nothing about plugin development so if anyone has any ideas let me know.

对于任何试图解决这个问题的人。我在这个插件上使用了 eclipse 插件转换器,它从旧的 plugin.xml 文件创建了一个 META-INF/MANIFEST.MF 文件。这使得上面的错误消失了,但是插件仍然不起作用,但是现在eclipse日志中没有错误消息......我对插件开发一无所知,所以如果有人有任何想法让我知道。

回答by Nemo

In case anyone else (like me) is trying to install a plugin that is unlikely to get updated for a while...

万一其他人(像我一样)试图安装一个暂时不太可能更新的插件......

You can add the legacy "Eclipse 2.0" plugin support from the "Eclipse Tests, Examples, and Extras" category in the Luna updates repository. See the attachment to this comment, which you can eventually find by tracing the breadcrumbs from the link in Dan Dar3's answer.

您可以从 Luna 更新存储库中的“Eclipse 测试、示例和附加”类别中添加旧的“Eclipse 2.0”插件支持。请参阅此评论的附件,您最终可以通过从 Dan Dar3 的答案中的链接追踪面包屑来找到该附件。

You can also add the legacy plugin support like so from the command line:

您还可以像这样从命令行添加旧插件支持:

./eclipse -nosplash -application org.eclipse.equinox.p2.director \
    -repository http://download.eclipse.org/eclipse/updates/4.4/ \
    -installIU org.eclipse.osgi.compatibility.plugins.feature.feature.group

After that, older plugins should install successfully.

之后,旧插件应该可以成功安装。