如何自动生成更新站点?
我们的项目中准备了很多eclipse插件。我想使用 tycho 自动构建 eclipse 插件。但是,在更新站点项目中执行“mvn install”时,第谷无法找到所需的功能。有什么问题吗??
My Update site ---> packaging : eclipse-update-site My feature ---> packaging : eclipse-feature my plugin ---> packaging : eclipse-plugin
我如何使用 tycho 在我的目标平台(eclipse)中安装我的插件和功能?
In our project many eclipse plugins are prepared. I want use tycho to build eclipse plugins automatically. But while executing "mvn install" in an update site project tycho can not find required features. Is there anything wrong??
My Update site ---> packaging : eclipse-update-site My feature ---> packaging : eclipse-feature my plugin ---> packaging : eclipse-plugin
How can i use tycho to install my plugin and feature in my target platform (eclipse) ??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
当您创建具有以下打包的项目作为多模块构建的一部分时,会生成存储库。
然后,您可以通过指向 target/repository 目录在 Eclipse 中引用它。至于部署,Tycho 没有提供自动化的部署方式。到目前为止我发现的所有内容都涉及使用 antrun 或其他一些非 Maven 集成方式,甚至一些非官方插件。
我也不是没有报告过:
Tycho 似乎更倾向于显式地执行操作,而不是像 Maven 核心那样提供合理的默认值。
A repository is generated when you create a project with the following packaging as part of a multimodule build.
You can then reference it in Eclipse by pointing to the target/repository directory. As for deployment, there is no automated way of deploying that is provided by Tycho. Everything I have found so far involves the use of antrun or some other non-maven integrated way or even some unofficial plugin.
It's not like I haven't reported it either:
Tycho appears to favor doing things explicitly rather than providing sensible defaults like the Maven core.
您可以使用 Equinox p2 中描述的
p2.generator
任务元数据生成器页面。它将允许您:
-source
参数)-updateSite
参数)生成元-config
参数)的现有 Eclipse 应用程序的元数据因此,在您的情况下,我怀疑您的站点缺少在 eclipse 目标平台中正确安装所需的元数据。
You can use the
p2.generator
task described in Equinox p2 Metadata Generator page.It will allow you :
-source
argument)-updateSite
argument)-config
argument)So in your case, I suspect your site lack the necessary metadata to be correctly installed in the eclipse target platform.
您需要配置构建的目标平台。目标平台是 Tycho 寻找您自己的工件引用的插件和功能的地方。
无法将 Tycho 构建的插件自动安装到 Eclipse 中。但是,您可以使用 Tycho 构建 p2 存储库(又名更新站点)并将其用作“安装新软件”向导的源。
You'll need to configure the target platform of the build. The target platform is where Tycho looks for plug-ins and features that are referenced by your own artifacts.
It is not possible to automatically install plug-ins built by Tycho into your Eclipse. However you can build a p2 repository (aka update site) with Tycho and use it as source for the "install new software" wizard.