如何在无头服务器上构建 Eclipse Plugin UpdateSite?
在过去的几天里,我一直在尝试在无头 Debian VM 上测试构建我的 eclipse 插件。使用无头 Debian VM 的原因是,一旦我完成了构建设置,构建和 UpdateSite 将托管在远程服务器上。 到目前为止我已经完成的工作:
- 构建插件本身 (${Projectname}-${version}.jar)
- 构建功能 (${Prohjectname}_Feature_${version}.jar)
- 将功能和插件以及 site.xml 移动到带有 ./features 和 ./plugins 的文件夹 ${structed-folder}
在我的具有完整 Ubuntu 的开发盒上,我能够在 CLI 上运行以下命令来构建所需的 content.jar 和 artifacts.jar
/usr/bin/eclipse -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -metadaRepository file:${folder-to-repo} -artifactRepository file:${folder-to-repo} -source ${structured-folder} -publishArtifacts -compress
:无头构建我尝试用“/usr/bin/eclipse/”替换,
java -jar ${path-to-eclipse/plugins}/org.eclipse.equinox.launcher_${version-string}.jar -initialize -application ...
但这根本没有给我任何输出。然后我尝试安装 eclipse 本身,它在运行时没有产生任何积极的结果/usr/bin/eclipse 需要 GTK 和 X。
所以我的问题是: 在无头模式下构建和发布 Eclipse 插件的正确设置是什么样的?我需要什么插件?我需要下载哪些 Eclipse 部分以及应该如何运行该过程?
For the last few days I have been trying to test-build my eclipse plugin on a headless Debian VM. The reason for the headless Debian VM is that once I have the build setup, the build and the UpdateSite will be hosted on a remote server.
What I have accomplished so far:
- build the plugin itself (${Projectname}-${version}.jar)
- build the feature (${Prohjectname}_Feature_${version}.jar)
- move the feature and plugin and site.xml to a folder ${structured-folder} with ./features and ./plugins
On my development box with full blown Ubuntu, I am able to run the following command on the CLI to build the required content.jar and artifacts.jar:
/usr/bin/eclipse -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -metadaRepository file:${folder-to-repo} -artifactRepository file:${folder-to-repo} -source ${structured-folder} -publishArtifacts -compress
On my headless build I tried to substiture "/usr/bin/eclipse/ with
java -jar ${path-to-eclipse/plugins}/org.eclipse.equinox.launcher_${version-string}.jar -initialize -application ...
But that does not give me any output at all. I then tried installing eclipse itself which it did not lead to any positive results as running /usr/bin/eclipse requires GTK and X.
So my question is:
What does a proper setup to build and publish eclipse plugins in headless mode look like? What plugins do I need? What pieces of eclipse do I need to download and how should I run the process?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我正在使用 ant 和 hudson 构建我们的 eclipse 产品和更新站点。根据您的需要,任务将如下所示:
您可以使用 P2 wiki 页面 以 eclipse 为参考。
在我最初设置时,Tycho 尚未准备好使用。几周前我再次尝试过,效果非常顺利,所以我建议尝试一下。
I'm building our eclipse product and update site with ant and hudson. Depending on your needs, the task will look something like this:
You can use the P2 wiki page of eclipse as reference.
At the time I initially set that up, Tycho wasn't ready to use. I've tried it out a few weeks ago again and it worked out really smoothly so I suggest to give it a try.