Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

Intraduction

In order to install and confiure the archiva application, you should follow thes steps:

Downlowd 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:

Install the Archiva application

Create the directory $(server.data.home)/webapps/archiva.

Unzip the archiva war fil in it.

Create a archiva.xml file in the $(server.tomcat.base)/conf/Catalina/localhost directory with the following content (dont 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:

  • No labels