title: How to build an Eclipse plugin with Maven/Tycho for use in the "Install New Software" dialog
body: <p>I want to automate Eclipse plugin builds with Jenkins. For this I am using the Tycho Maven plugin. The plugin build works fine, but I am not able to install it through <em>Install New Software...</em> option in Eclipse. I have to manually deploy this plugin with the <em>Export</em> option.</p>
  
  <p>Is there a way to automate this task? I've created another project, a <em>Feature Project</em>, and I build it with Maven. Packaging is <code>eclipse-feature</code>.
  However, the output directory structure doesn't resemble one that is created while doing <em>Export</em>.</p>
  
  <p>Here is the <code>pom.xm</code> of my plugin:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
  http://maven.apache.org/xsd/maven-4.0.0.xsd"
  xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
  
  &lt;repositories&gt;
      &lt;repository&gt;
        &lt;id&gt;luna&lt;/id&gt;
        &lt;url&gt;http://download.eclipse.org/releases/luna&lt;/url&gt;
        &lt;layout&gt;p2&lt;/layout&gt;
      &lt;/repository&gt;
  &lt;/repositories&gt;
  
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;com.acme.viewer&lt;/groupId&gt;
  &lt;artifactId&gt;ViewerPlugin&lt;/artifactId&gt;
  &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
  &lt;packaging&gt;eclipse-plugin&lt;/packaging&gt;
  
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.eclipse.tycho&lt;/groupId&gt;
              &lt;artifactId&gt;tycho-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;0.23.0&lt;/version&gt;
              &lt;extensions&gt;true&lt;/extensions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>And here is the <code>pom.xml</code> of my the feature:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;ViewerPlugin.Feature&lt;/groupId&gt;
    &lt;artifactId&gt;ViewerPlugin.Feature&lt;/artifactId&gt;
    &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
    &lt;packaging&gt;eclipse-feature&lt;/packaging&gt;
  
    &lt;repositories&gt;
      &lt;repository&gt;
        &lt;id&gt;luna&lt;/id&gt;
        &lt;url&gt;http://download.eclipse.org/releases/luna&lt;/url&gt;
        &lt;layout&gt;p2&lt;/layout&gt;
      &lt;/repository&gt;
    &lt;/repositories&gt;
    &lt;build&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;groupId&gt;org.eclipse.tycho&lt;/groupId&gt;
          &lt;artifactId&gt;tycho-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;0.23.0&lt;/version&gt;
          &lt;extensions&gt;true&lt;/extensions&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>