Repository Management with Nexus
Repository Management with Nexus

16.2. Uploading an Artifact Bundle to Nexus

To upload an artifact bundle to Nexus Professional, select Staging Upload from the Enterprise section of the Nexus menu as shown in Figure 16.1, “Staging Upload Link”.

figs/web/bundles-upload-link.png

Figure 16.1. Staging Upload Link


Selecting the Staging Upload link will load the Staging Upload dialog. Choose Artifact Bundle form the Upload Mode dropdown the Staging Upload panel will switch to the form shown in Figure 16.2, “Uploading an Artifact Bundle”. Click on Select Bundle to Upload… and then select the JAR that was created with the Maven Repository plugin used in the previous sections. Once a bundle is selected, click on Upload Bundle.

figs/web/bundles-staging-upload.png

Figure 16.2. Uploading an Artifact Bundle


After uploading the Artifact Bundle, click on the Staging link in the Enterprise section of the Nexus menu as shown in Figure 16.1, “Staging Upload Link”. Click on Staging will load a list of all the defined staging profiles. Click on the first default profiles named "Release Staging Profile", and you should see that the Staging Artifact Upload created and closed a new staging repository as shown in Figure 16.3, “Staging Repository Created for Artifact Bundle Upload”. This repository contains all of the artifacts contained in the uploaded bundle. It allows you to promote or drop the artifacts contained in a bundle as a single unit.

figs/web/bundles-staged-bundle.png

Figure 16.3. Staging Repository Created for Artifact Bundle Upload


To promote a staging repository, right click on the closed repository shown in Figure 16.3, “Staging Repository Created for Artifact Bundle Upload”, and select "Promote". Once you select promote, Nexus will present the Promote Staged Repository dialog shown in Figure 16.4, “Promoting a Staged Repository”. Select the repository that you want to published the staging repository to, and click on the Promote button.

figs/web/bundles-stage-promote.png

Figure 16.4. Promoting a Staged Repository


After promotion, Nexus will then display a confirmation that the promotion was completed successfully as shown in Figure 16.5, “Confirmation that Staged Repository has been Promoted”.

figs/web/bundles-stage-success.png

Figure 16.5. Confirmation that Staged Repository has been Promoted


Sonatype Promotion Subscribe via RSS