title: Using artifacts from Eclipse Luna P2 repository in Maven
body: <p>Has anybody an idea how to define a regular Maven dependency against an artifact that is hosted in an Eclipse P2 repository (e.g <a href="http://download.eclipse.org/releases/luna" rel="nofollow noreferrer">http://download.eclipse.org/releases/luna</a>)? The only answer I found was this: <a href="https://stackoverflow.com/questions/6682028/use-dependencies-from-eclipse-p2-repository-in-a-regular-maven-build">Use dependencies from Eclipse p2 repository in a regular Maven build?</a>.</p>
  
  <p>In my case I cannot change from the pom-first approach to the manifest-first approach and especially, I don't want to change the packaging from <code>bundle</code> to <code>eclipse-plugin</code>. Unfortunately, I cannot find any up-to-date releases in any of the public Maven repositories.</p>
  
  <p>The artifacts I am interested in are:</p>
  
  <p><code>org.eclipse.equinox:org.eclipse.equinox.http.jetty:3.0.200.v20131021-1843</code>
  <code>org.eclipse.equinox:org.eclipse.equinox.http.servlet:1.1.500.v20140318-1755</code></p>
  
  <p>I have tried it with simply defining the Eclipse P2 Repository in my root pom:</p>
  
  <pre><code>&lt;repository&gt;
      &lt;id&gt;eclipse-luna-repository&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;
  </code></pre>
  
  <p>Of course this does not work and I get the following error:</p>
  
  <p><code>Could not transfer artifact org.eclipse.equinox\:org.eclipse.equinox.http.jetty\:pom\:3.0.200.v20131021-1843 from/to eclipse-luna-repository (http\://download.eclipse.org/releases/luna)\: No connector available to access repository eclipse-luna-repository (http\://download.eclipse.org/releases/luna) of type p2 using the available factories WagonRepositoryConnectorFactory</code></p>
  
  <p>Has anybody an idea how to solve this problem?</p>