从 Eclipse 第谷开始
我有一个 Maven 应用程序,我想将其转换为 Eclipse RCP。我的应用程序有大量当前在 POM 中指定的依赖项。
我不知道如何处理如此大量的依赖关系。
例如,第谷会提供帮助吗?
我可以使用现有的 POM 及其所有依赖项吗?还是必须在清单中指定它们?
I have a maven application that I'd like to convert to Eclipse RCP. My application has a large amount of dependencies that are currently specified in the POM.
I am not sure how to deal with this large amount of dependencies.
Would Tycho help for instance?
Can I use my existing POM with all its dependencies or do I have to specify them in the manifest?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
第谷有两种方法。第一种是清单优先方法,您可以在清单中定义依赖项。第谷读取清单并解析目标平台的依赖关系。因此,您必须在清单中定义依赖项,并根据依赖项创建目标平台。
第二种方法是 pom-first 方法,您可以在 pom.xml 中定义所有依赖项。我不知道这是否已经可用,因为 tycho 团队从清单优先方法开始。如果有 pom-first 方法的示例,您应该查看 tycho 文档。
There are two approaches in tycho. The first is the manifest-first approach where you define your dependencies in the manifest. Tycho reads in the manifest and resolves the dependencies from the target platform. So you have to define the dependencies in the manifests and create a target platform from your dependencies.
The second approach is the pom-first approach, where you define all your dependencies in the pom. I don't know, if this is usable already, because the tycho team started with the manifest-first approach. You should have a look at the tycho docs, if there is an example for the pom-first approach.