Has anybody an idea how to define a regular Maven dependency against an artifact that is hosted in an Eclipse P2 repository (e.g http://download.eclipse.org/releases/luna)? The only answer I found was this: Use dependencies from Eclipse p2 repository in a regular Maven build?.
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 bundle
to eclipse-plugin
. Unfortunately, I cannot find any up-to-date releases in any of the public Maven repositories.
The artifacts I am interested in are:
org.eclipse.equinox:org.eclipse.equinox.http.jetty:3.0.200.v20131021-1843
org.eclipse.equinox:org.eclipse.equinox.http.servlet:1.1.500.v20140318-1755
I have tried it with simply defining the Eclipse P2 Repository in my root pom:
<repository>
<id>eclipse-luna-repository</id>
<url>http://download.eclipse.org/releases/luna</url>
<layout>p2</layout>
</repository>
Of course this does not work and I get the following error:
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
Has anybody an idea how to solve this problem?