title: How to build Eclipse Plugin UpdateSite on headless server?
body: <p>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:</p>
  
  <ul>
  <li>build the plugin itself (${Projectname}-${version}.jar)</li>
  <li>build the feature (${Prohjectname}_Feature_${version}.jar)</li>
  <li>move the feature and plugin and site.xml to a folder ${structured-folder} with ./features and ./plugins</li>
  </ul>
  
  <p>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:</p>
  
  <pre><code>/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
  </code></pre>
  
  <p>On my headless build I tried to substiture "/usr/bin/eclipse/ with </p>
  
  <pre><code>java -jar ${path-to-eclipse/plugins}/org.eclipse.equinox.launcher_${version-string}.jar -initialize -application ...
  </code></pre>
  
  <p>But that does not give me <strong>any</strong> 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.</p>
  
  <p>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?</p>