Distribution management

Any organization should have a central repository, in order to guarantee the consistency of artifacts for all teams. Many solutions exist on the market, either open source or commercial. In this section, we will deal with Apache Archiva. however, most of the concepts are common to other systems, such as Sonatype Nexus and JFrog Artifactory:

  1. Download (http://archiva.apache.org/download.cgi), install, and execute Archiva, let's say on http://localhost:8080.
  2. Create an admin account and password, let's say admin/admin1.
  3. In your settings.xml, add the following block of code:
        <servers>
            <server>
                <!-- Repository for releases -->
                <id>archiva.releases</id> <username>admin</username> <password>admin1</password> </server> <server> <!-- ...

Get Apache Maven Dependency Management now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.