How to create an Eclipse UpdateSite plugin on a headless server?

Over the past few days, I have been trying to test - build my eclipse plugin on a headless Debian virtual machine. The reason for the Debian headless virtual machine is that after installing the assembly, the assembly and UpdateSite will be hosted on the remote server. So far I have achieved:

  • create the plugin itself ($ {Projectname} - $ {version} .jar)
  • create function ($ {Prohjectname} _Feature _ $ {version} .jar)
  • move the function and the plugin and the site.xml file to the $ {structured-folder} folder with. / features and. / plugins

In my development box with full-blown Ubuntu, I can run the following command in 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 

In my headless build, I tried to substitute "/ 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 conclusion whatsoever. Then I tried to install eclipse, which did not produce any positive results, since running / usr / bin / eclipse requires GTK and X.

So my question is: What does the correct setup look like for creating and publishing eclipse plug-ins in headless muscle mode? What plugins do I need? What pieces of eclipse do I need to download and how do I start this process?

+6
eclipse build p2 headless
source share
1 answer

I create our eclipse site and update the ant and hudson site. Depending on your needs, the task will look something like this:

 <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> 

As a reference, you can use the P2 wiki page eclipse.

At the time I originally installed this, Tycho was not ready for use. I tried it a few weeks ago and it worked out very smoothly, so I suggest trying it.

0
source share

All Articles