PDE Build 无法解析它所依赖的插件中的类

发布于 2024-11-01 18:57:40 字数 442 浏览 3 评论 0原文

在使用 Eclipse 功能和插件时,我在构建两个单独的功能(我们称其为“一”和“二”)时遇到问题,其中“二”包含依赖于“一”中插件的插件。我使用 PDE Build,理想情况下希望可以选择仅构建一个或两个(假设一个是在之前的某个时间点构建的)。

然而,在构建了 One 并尝试构建 Two 后,我遇到了无法解析 One 中构建的类的问题。我试图让第二个构建使用 .jar 文件,这些文件是构建第一个的输出,但没有成功。它似乎只是忽略了 One 的构建输出。

我尝试了各种解决方案,例如使用 build.properties pluginPath 属性来引用我依赖的 .jar 文件。将已经构建的插件复制到 buildDirectory 中也不是一个好的选择,因为我工作的环境有点混乱,并且构建目录还包含其他不需要构建的插件(包括使用 One 构建的插件)。

欢迎任何建议!

干杯,

安德斯

Working Eclipse features and plugins, I have a problem with building two separate features (lets call them One and Two) where Two contains plugins that depend on plugins in One. I use PDE Build and ideally would like to have the option to build just One or Two (assuming One was built at some previous point in time).

However, having built One and then trying to build Two I run into the problem that classes that were built in One cannot be resolved. I am trying to get the second build to use the .jar files which were the output of building One, but have had no success. It simply seems it ignores the build output from One.

I've tried various solutions, like using build.properties pluginPath property to refer to the .jar files I depend on. Copying the already built plugins into buildDirectory is not a good option either, since the environment I am working in is a bit messed up and the build directory also contains other plugins that are not to be built (including the plugins built with One).

Any suggestions are welcome!

Cheers,

Anders

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

饮湿 2024-11-08 18:57:40

在 PDE 中,功能只是一组插件。这在安装过程中有意义,但在构建过程中没有意义。所以你不能说“插件 X 依赖于 feature Y”,你只能说“插件 X 依赖于 插件 Z”

所以你需要做的是这样的:

  1. Two 中提及 One 的插件添加依赖项

  2. One 添加到“目标平台定义”。这基本上是一个插件列表,当将来某个时候安装 Two 的插件时,这些插件将可用。

这篇博客文章应该让您开始如何创建自己的目标平台。

[编辑]这两篇博客文章可能也有用:

http://pweclipse.blogspot.com/2011/02/pde-build-as-workspace-export.html

http://www.vogella.de/articles/EclipsePDEBuild/article.html

In PDE, features are just sets of plugins. This is meaningful during installation but not during build. So you can't say "plugin X depends on feature Y", you can only say "plugin X depends on plugin Z"

So what you need to do is this:

  1. Add dependencies to the plugins in Two which mention the plugins from One

  2. Add One to the "target platform definition". This is basically a list of plugins which will be available when the plugins of Two will be installed at some time in the future.

This blog post should get you started how to create your own target platform.

[EDIT] These two blog posts might also be useful:

http://pweclipse.blogspot.com/2011/02/pde-build-as-workspace-export.html

http://www.vogella.de/articles/EclipsePDEBuild/article.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文