SKM IT World

Just another blog about IT

Set up a Proxy P2 Repository with Nexus OOS

2 Comments


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

Advertisements

2 thoughts on “Set up a Proxy P2 Repository with Nexus OOS

  1. I have added a proxy for a p2 repository. The proxy works fine (I can use the provided nexus url in my target file), but nexus is not storing the data locally. Is there something I miss? I want Nexus to cache the jars because of performance and availability reasons.

    Like

    • With the standard configuration nexus is storing the data locally on my machine. Which version of the plugins are you using?

      The named version of the plugin in the post were a little bit unstable. The currrent version of the plugins are stable. I will update the post.

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s