NOTE: This DEB was upgraded to Nexus OSS 188.8.131.52 on November 6, 2011.
I tend to jump between Ubuntu and OSX for development, and I maintain a number of Ubuntu machines for my own work running things like Nexus and Hudson. After you’ve installed Nexus one hundred billion times, you’ll start to understand that manually configuring both a Linux service and then slogging through Apache 2 mod_proxy directives is a little boring. Since I’m a strict adherent of DRY, I took it upon myself to package Nexus Open Source into a package that automates these repetitive tasks.
What I wanted was this: “sudo apt-get install nexus-oss”, go grab a cup of coffee and return to a working repository manager. After a few hours of effort, it works. Here are the commands you need to execute on a new install of Ubuntu 10.04 (It probably works with maverick as well):
sudo apt-get install python-software-properties sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner" sudo add-apt-repository "deb http://build.discursive.com/apt/ lucid main" sudo apt-get update sudo apt-get install nexus-oss
And, here is a video walkthrough:
Here’s what my package does: it drops Nexus 1.9.1 into /usr/local and puts the sonatype-work directory into /var/lib. It redirects log files to /var/log/nexus, and places the temporary files in /var/tmp/nexus. It depends upon (and installs) Apache 2 + the mod_proxy module. It enables the proxy and proxy_http modules and then drops an Apache configuration file with directives that expose Nexus via Apache on the path /nexus. It then adds Nexus as a service.
I hope this helps, and I hope this makes it easier for people to start using Nexus.