SKM IT World

Just another blog about IT


2 Comments

Set up a Proxy P2 Repository with Nexus OOS

Assumption

I assume Nexus OOS in version 2.1.2 is installed. You can find a good tutorial in Sonatype’s Nexus book Repository Management with Nexus (Chapter 3: Installing and Running Nexus).

Preparation

For the set up of a proy P2 repository three Nexus plugins are needed:

  • Nexus Capability Plugin (It is contained¬† in the basic Nexus installation)
  • Nexus P2 Bridge Plugin 2.0.5 (Download)
  • Nexus P2 Repository Plugin 2.2¬† (Download)

It is important that you download the artifacts ending with -bundle.zip. Unzip both plugins in the directory $NEXUS_HOME/../sonatype-work/nexus/plugin-repository of your Nexus instance. Restart your Nexus instance. Then follow the instruction for creating a proxy P2 repository in the Sonatype Nexus book.

Troubleshooting

After I had created two proxy P2 Repositories, Nexus ran unstable. It restarted every night, automatically. A post in Nexus Mailing List advised me to increasing the heap space to 1024MB for a stable run with proxies P2 Repository:

  1. Open the config file $NEXUS_HOME/nexus/bin/jsw/conf/wrapper.conf.
  2. Edit the property wrapper.java.maxmemory.

Increasing the heap space to 1024MV solves my problem.

Links