In order to install and configure the Archiva application, you should follow these steps:
- #Downlowd the Archiva application
- #Create a MySQL database for Archiva
- #Install the Archiva application
- #Bind the database and the application in Tomcat
- #Configure the repositories and proxies
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.
Create a MySQL database for Archiva
To create the MySQL database for Archiva, log as root, and execute the following commands:
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):
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:
- JNDI Name is: "jdbc/users"
- DataSource URL is: "jjdbc:mysql://localhost:3306/archiva?characterEncoding=UTF-8"
- JDBC Driver Class is: "com.mysql.jdbc.Driver"
- User Name is: "archiva"
- Password is: "archiva"
- Max. active Connections, Max. Idle Connections, Max. Wait for Connection and Validation Query have default 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: