CruiseControl with Maven2 & SVN on Ubuntu

CruiseControl is a great tool to automate builds; I use SVN and Maven2, so these are the steps I took to get it working. Anywhere you see HOSTNAME, replace it with the hostname of the machine on which CruiseControl is running; anywhere you see PROJECT1, replace it with the name of a Maven2 project.
  1. Download the binary distribution from the CruiseControl download page.
  2. Extract it to /opt. This creates the install directory, /opt/cruisecontrol-VERSION, which I'll call INSTALL.
  3. Add a new user under which CruiseControl will be run; pick whatever username you want, and keep it in mind.
    sudo adduser ccmaster