Wednesday, April 25, 2012

P2 support for Nexus OSS


 
Working with latest OSGi technology I use Tycho + Maven for my CI builds. This makes it necessary to deal with P2. To speed things up it is a good idea to proxy your P2 repositories. You can easily achieve this by "upgrading" Sonatype Nexus OSS edition to provide P2 capabilities.

Go to the Sonatype RSO repository and download the following bundles:
  • nexus-p2-repository-plugin
  • nexus-p2-bridge-plugin
If necessary also download a recent version of the nexus-capabilities-plugin.
Stop your Nexus instance and copy the downloaded bundles to NEXUS_HOME/nexus/WEB-INF/plugin-repository

Now you are done and can startup Nexus and will have P2 support.
As a first step I highly recommend to mirror/proxy the Eclipse P2 repository:
http://download.eclipse.org/releases/indigo/