解决 Eclipse 中 Virgo 的工作区依赖关系
我希望开始使用 Eclipse Virgo,因此我根据程序员指南获取了 Eclipse 所需的插件。
接下来,我在 Eclipse 工作区中启动了两个新项目,它们都配置为 Virgo 捆绑包(称为 A 和 B)。然后,我在bundle B中创建了一个新类com.foo.Bar
。我修改了bundle B的Manifest以导出com.foo
,保存。最后,我在bundle A中导入了com.foo
。Bundle
A的清单有一个错误:
导入包:com.foo [0.0.0, oo) 无法解析
我需要做什么来配置 Eclipse 以使用工作区中的项目解决依赖关系?
我已经尝试将捆绑包 B 添加到捆绑包 A 的构建路径中,但这没有什么区别。 (值得注意的是,将捆绑包 B 添加到捆绑包 A 的构建路径中,即使它有效,也不是一个合适的解决方案,因为依赖关系管理需要以不同的方式完成。)注意
细节:
- Virgo:2.1
- Eclipse:3.6
I'm looking to get started with Eclipse Virgo, so I grabbed the required plugins for Eclipse based on the Programmer Guide.
Next, I started two new projects in my Eclipse workspace, both configured as Virgo bundles (call these A and B). Then, I created a new class com.foo.Bar
in bundle B. I modified the Manifest of bundle B to export com.foo
, saved. Last, I imported com.foo
in bundle A.
Bundle A's manifest has an error:
Import-Package: com.foo [0.0.0, oo) could not be resolved
What do I need to do to configure Eclipse to resolve dependencies using the projects in my workspace?
I've already tried adding bundle B to the build path of bundle A, but this makes no difference. (It's worth noting that adding bundle B to the build path of bundle A, even if it had worked, isn't a suitable solution because the dependency management needs to be done differently.)
Details of note:
- Virgo: 2.1
- Eclipse: 3.6
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我通过使用 STS(Spring Tool Suite)和 Spring dm Server 工具并将每个包与 virgo 运行时相关联来使其工作。
I got it working by using STS (Spring Tool Suite) and the tooling for Spring dm Server and associating each bundle with virgo runtime.
鉴于:
(使用“Project Facets”窗口中的“Runtimes”选项卡)
解决依赖关系的步骤:
Given that:
(use the Runtimes tab in the Project Facets window)
Steps to resolve dependencies: