开发者

Eclipse Plug-In Dependencies Vanished

I am developing OSGi in Eclipse, and the plugin dependices has vanished for a project.

I have checked .classpath, and it seems fine:

<classpath>
    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
    <classpathentry kind="con" path="org.eclipse.pde.core.re开发者_JAVA百科quiredPlugins"/>
    <classpathentry kind="src" path="src"/>
    <classpathentry kind="output" path="bin"/>
</classpath>

I have tried starting eclipse with -clean and I have tried creating a new workspace and importing the projects into that workspace - no luck with either.

Any ideas? :)


Some strange eclipse bug. Re-edited the manifest file, and the dependencies reappeared and the project successfully compiled.


In case anyone still encounters this issue, the solution that worked for me eventually was (on Eclipse 4.3)

  1. Delete the org.eclipse.pde.core.prefs file under the .settings folder in the plugin project
  2. Remove/Delete the project from the workspace
  3. Re-import the project back into the workspace

This should fix the Plug-in Dependencies entries for that project.

Hope it helps!


Check that you defined a valid target platform in Eclipse.

Go to Window -> Preferences -> Plug-in Development -> Target Platform.

When importing the plugin it was set to an empty target platform, you can verify this by first edit the selected target, then selecting the content tab of the target platform, it's empty.

I changed the Target Platform to 'Running Platform (Active)'. This imported the necessary libs in the project, they were added to the plugin dependencies.

You can also opt to define your own custom target platform but that needs some more work and knowledge.


The .classpath file is for Java builder only. Dependencies are in META-INF/MANIFEST.MF

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜