Manually migrating artifacts from one Nexus environment to another

Introduction

You can move validated artifacts from one Nexus environment (for example, QA to Dev environment) to another without using a script.

 

Procedure

  1. Navigate to the Storage directory of your Nexus installation, for example, C:\Talend\6.4.1\tac\Artifact-Repository-Nexus-V2.14.3-02\sonatype-work\nexus\storage. Locate the repository/repositories you want to move and zip or copy them to move them to the new environment.

    kb_1.PNG

     

  2. In the new environment, open Nexus in your local browser, for example, http://localhost:8081/nexus/, then create a new hosted repository. Navigate to the new repository, for example, C:\Talend\6.4.1\tac\Artifact-Repository-Nexus-V2.14.3-02\sonatype-work\nexus\storage.

  3. Extract the contents of the ZIP file or paste the copied files into the newly created repository.

  4. Refresh the Nexus to see the new repository with all the artifacts.