Showing posts with label maven. Show all posts
Showing posts with label maven. Show all posts

Tuesday, January 22, 2008

Installing Apache Maven 2 on Ubuntu 7.10 Desktop

The Maven software project management tool is indispensable for managing the build process, reporting and documentation for Java development projects. Naturally, one of the first things I wanted to do on my new project was set up the build environment. Unfortunately, Maven is not available as a package for Ubuntu 7.10. It is available in the current unstable release (Hardy Heron).

To install Maven on Ubuntu 7.10, download the following packages from Hardy Heron:

maven2
libdoxia-java
libplexus-container-default-java
libclassworlds-java
libplexus-velocity-java
libjtidy-java
libplexus-interactivity-api-java
libplexus-component-api-java
libplexus-classworlds-java
libplexus-utils-java
libwagon-java


When all of the packages are downloaded, open a terminal and navigate to the directory that contains the packages. Execute the following command:

dpkg -i *.deb
Update: Per some comments, it may be necessary to execute the following command as well:

sudo apt-get install -f


dpkg will download the remaining dependencies and install all of the packages. When installation has completed, you can verify that Maven is installed and working by typing:

mvn --version


You should see something like:

Maven version: 2.0.8
Java version: 1.5.0_13
OS name: "linux" version: "2.6.22-14-generic" arch: "i386" Family: "unix"