Connecting to the repository
In order for our application to be able to connect to the CodeArtifact repository, we need to have an authentication token, which will make a connection to our repository and allow us to publish and download artifacts. Since we are using Maven to build our aws-code-pipeline
sample application, we need to set up our Maven configuration so that Maven can communicate with our repository and can download and publish the required packages:
- Click on the View connection instructions button under our new repository:
Figure 7.14 – CodeArtifact repository connection
- This will open the pop-up screen as shown in the following screenshot, asking you to select a package type, for which we are looking for connection instructions:
Figure 7.15 – CodeArtifact repository connection details
- Select mvn and a screen will be shown with steps to configure Maven. As a first step...