Creating Repository

To create a repository in Sonatype Nexus, follow these steps:

  1. Access the Nexus web interface: Open a web browser and navigate to the URL of your Nexus instance (e.g., http://localhost:8081).

  2. Log in to Nexus: Enter your Nexus administration credentials to log in.

  3. Navigate to the administration section: In the Nexus web interface, click on the "Administration" link in the top navigation menu.

  4. Manage repositories: In the administration section, click on "Repositories" under the "Repositories" category.

  5. Create a new repository: Click on the "Create repository" button to start creating a new repository.

  6. Select repository type: Nexus supports various repository types, such as Maven 2 (hosted, proxy, or group), npm (hosted, proxy, or group), NuGet (hosted, proxy, or group), and more. Choose the appropriate repository type based on your requirements.

  7. Configure repository settings: Provide the necessary details for the repository configuration. The specific settings will depend on the repository type you selected.

    • For example, if you're creating a Maven 2 repository, you'll need to specify the repository ID, name, and format. You can also configure additional settings like storage, proxy, deployment policy, and access controls.

  8. Save the repository configuration: Once you have configured the repository settings, click on the "Create repository" or "Save" button to create the repository.

  9. Repository created: After saving, you will see a confirmation message indicating that the repository has been created successfully.

  10. Customize repository settings (optional): Depending on your needs, you can further customize the repository settings by adjusting parameters such as repository URLs, proxy configurations, cleanup policies, or security settings.

Last updated