Repository Management with Nexus
18.3. Uploading an Artifact Bundle to Nexus
To upload an artifact bundle to Nexus Professional you have to have a repository target for the project configured as described in Section 6.9, “Managing Repository Targets”.
Once that is done, select Staging Upload from the Build Promotion section of the Nexus menu as shown in Figure 18.1, “Build Promotion Menu”.
Selecting the Staging Upload link will load the Staging Upload dialog. Choose Artifact Bundle from the Upload Mode drop-down the Staging Upload panel will switch to the form shown in Figure 18.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.
After a successful upload, a dialog displays the name of the created staging repository in a URL that links to the content of the repository. To view the staging repository, click on the Staging Repositories link in the Build Promotion section of the Nexus menu as shown in Figure 18.1, “Build Promotion Menu”, and you should see that the Staging Artifact Upload created and closed a new staging repository as shown in Figure 18.3, “Staging Repository Created from 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.
Once the staging repository is closed you can promote it to a Build Promotion Profile or release it to the target repository of the staging profile as documented in Section 10.4, “Managing Staging Repositories in Nexus”.