Apache Archiva

Apache Arhiva

Repositorios Maven Locales

Cuando tenemos problemas de conexion podemos usar un repositorio local para maven

Instalacion

URL:

http://www.mkyong.com/maven/how-to-install-apache-archiva-in-ubuntu/arrow-up-right

Descargarlo desde

http://archiva.apache.org/index.cgiarrow-up-right

Se pueden descargar dos versiones, usaremos el Standalone

Descomprimir el archivo

Iniciarlo

Terminado

Done

Access Apache Archiva web admin viahttp://localhost:8080/archivaarrow-up-right.

Post Installation

You may need to change the Apache Archiva default 8080 port number to avoid port conflict issue.

1. Archiva configuration file

Access the Apache Archiva web container configuration file “{achiva_folder}/conf/jetty.xml“, edit it with your favor editor.

2. Update port number

Find the following pattern

Change the jetty port to other post – 8888

3. Restart it

Restart Apache Archiva to take effect, done.

Now, you can access the Apache Archiva web admin via

http://localhost:8888/archivaarrow-up-right

.Configurar Maven Central

How to integrate between Apache Archiva and Maven

https://www.mkyong.com/maven/how-to-integrate-between-apache-archiva-and-maven/arrow-up-right

3. Add mirror setting

Locale the Maven’s configuration file, “{mavendir}/conf/settings.xml “, update the mirror setting to your Apache Archiva repository.

* url tag – It is your Archiva remote repository sever address. * mirrorOf tag – mirror everything

P.S More detail aboutMaven mirror settingsarrow-up-right

4. Done

The different!?

Here’s the different before and after the Apache Archiva integration.

Before integrate Archive

All the dependency libraries are download from Maven central repository.

After integrated Archive

All the dependency libraries are download from your own remote repository (Archiva) server.

Last updated