We have learned how to use an Archiva repository as a proxy cache, now we will learn how to use it as a deployment repository and how to deploy from Maven. For this exercise, we will be using the simple-webapp
project again from Chapter 1, Maven Best Practices, and the default snapshots repository for our deployment repository.
Recalling what we have learned about separating our repositories, we know that snapshots and releases need to go into different repositories. We already have a deployment repository for snapshots configured in our Archiva instance but we don't have a deployment repository for releases yet. We will create one for that. Go to the Repositories page again and add a Managed Repository with the following configuration:
After creating our deployment repository for releases, we need to create a new user account that we will use to deploy our project.