如何在无头服务器上构建Eclipse插件UpdateSite?

Dod*_*FXP 7 eclipse build headless p2

在过去的几天里,我一直在尝试在无头的Debian VM上测试构建我的eclipse插件.无头Debian VM的原因是,一旦我进行了构建设置,构建和UpdateSite将托管在远程服务器上.到目前为止我所取得的成就:

  • 构建插件本身($ {Projectname} - $ {version} .jar)
  • 构建功能($ {Prohjectname} _Feature _ $ {version} .jar)
  • 将功能和插件以及site.xml移动到带有./features和./plugins的文件夹$ {structured-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
Run Code Online (Sandbox Code Playgroud)

在我无头的构建中,我试图替换"/ usr/bin/eclipse/with

java -jar ${path-to-eclipse/plugins}/org.eclipse.equinox.launcher_${version-string}.jar -initialize -application ...
Run Code Online (Sandbox Code Playgroud)

但这根本不给我任何输出.然后我尝试安装eclipse本身,它没有导致任何积极的结果,因为运行/ usr/bin/eclipse需要GTK和X.

所以我的问题是:在无头模式下构建和发布eclipse插件的正确设置是什么样的?我需要什么插件?我需要下载哪些日食以及如何运行该过程?

eld*_*ldn 0

我正在使用 ant 和 hudson 构建我们的 eclipse 产品和更新站点。根据您的需求,任务将如下所示:

<java jar="${eclipse.build.launcher}" fork="true" failonerror="true">
    <arg value="-application" />
    <arg value="org.eclipse.ant.core.antRunner" />
    <arg value="-buildfile" />
    <arg file="${basedir}/process_artifacts.xml" />
    <jvmarg value="-Dp2.repo=${repository}" />
</java>
Run Code Online (Sandbox Code Playgroud)

您可以使用eclipse 的P2 wiki 页面作为参考。

当我最初设置它时,第谷还没有准备好使用。几周前我再次尝试过,效果非常顺利,所以我建议尝试一下。