In order to install and configure the Archiva application, you should follow these steps:

Download the Archiva application

At the time of the writing, Archiva is not yet released.

You should therefore download the Archiva sources and build it.

Or you can download a patched version of MRM-212 from Arnaud Heritier.

Create a MySQL database for Archiva

To create the MySQL database for Archiva, log as root, and execute the following commands:

> mysql mysql
mysql> create database archiva;
mysql> grant all privileges on archiva.* to 'archiva'@'localhost' identified by 'archiva' with grant option;
mysql> grant privileges;
mysql> quit
> mysql -u archiva -parchiva archiva

Install the Archiva application

Create the directory $(

Unzip the archiva war file in it.

Create a archiva.xml file in the $(server.tomcat.base)/conf/Catalina/localhost directory with the following content (don't forget to expand the $(xxx) variables with your defined values):

<?xml version="1.0" encoding="UTF-8"?>
<Context path="/archiva" docBase="$("/>

Bind the database and the application in Tomcat

Using the Tomcat admin application, configure the database binding.

Select the Archiva's datasources.

Choose the "Create New Data Source" action.

Add the Values:

Save the changes, commit and restart Tomcat.

Configure the repositories and proxies

First point your browser to http://localhost:8080/archiva

Set the archiva administrator password:

Log in as Archva's administrator:

Define the First repository:

Define the repositories index:

See the result of the basic congiguration:

Define the other repositories:

See the complete result of repositories definitions:

Then configure a proxy:

Proxy Maven central to the locate central repository:

See the resulting proxies defintions: