Skip to main content

Configurable Repository Fields

The sections below provide details on different configurations you can make when you create a new repository or open an existing repository's management view (i.e. when you select it from the list of created repositories).

Available configurations vary depending on repository type and format.

  • Name

    The Name is the identifier that will be used in the URL for access to the repository. For example, the proxy repository for the Central Repository is named "maven-central." The Name must be unique in a given Nexus Repository instance and is required.

  • Format

    A repository's format is the format in which Nexus Repository exposes the repository to external tools. Examples include docker, npm, go, pypi, etc.

    See Formats

  • Type

    The repository type field indicates whether this is a hosted, proxy, or group repository.

    See Repository Types

  • URL

    The URL field displays the user-facing URL for this repository. Maven and other tools can access the repository directly at that URL (e.g., http://localhost:8081/repository/maven-central).

  • Online Checkbox

    The Online checkbox allows you to define whether or not a given repository is available to client-side tools. Check the checkbox to make the repository available; de-select the checkbox to make it unavailable.

  • Blob Store

    The Blob store field indicates which blob store among your available blob stores this repository will use to store its binary parts.

    See Storage Guide

  • Strict Content Type Validation

    When the Strict Content Type Validation checkbox is checked, validation will check that the MIME type of all files published into the repository conforms to the allowed types for that specific repository format.

  • Cleanup Policies

    Cleanup policies control disk space by removing unused items. Nexus Repository applies the selected cleanup policies to the repository to delete components that match the criteria. Use the arrow controls to associate one or more cleanup policies to the applied section.

    See Cleanup Policies

  • Deployment Policy

    Controls how the repository allows or disallows component deployment in hosted repositories.

    • Disable redeploy (default value) - A client can only deploy a particular component once; any attempt to deploy a component again will result in an error.

    • Allow redeploy - Clients can deploy components to this repository and overwrite the same component in subsequent deployments.

    • Read-only - No deployment allowed.

  • Remote Storage

    The Remote Storage field is only available for proxy repositories. This field contains the URL for the remote repository that this repository will proxy. As a best practice, avoid proxying remote repository groups as this can impact performance optimization. Instead, create multiple proxy repositories that each proxy the different hosted repositories that make up the group instead of proxying the group itself.

  • Use the Nexus Repository Truststore

    Available for proxy repositories that use an HTTPS URL. When enabled, Nexus Repository manages the remote repository's SSL certificate. Select the View certificate button to view SSL certificate details and, optionally, add or remove the certificate from the truststore that Nexus Repository maintains.

    See Outbound SSL - Trusting SSL Certificates of Remote Repositories

  • Blocked

    The Blocked checkbox configuration is only available for proxy repositories. Check this box to prevent Nexus Repository from sending outbound requests to the remote repository.

  • Auto Blocking Enabled

    The auto-blocking enabled field is only available for proxy repositories. When enabled, Nexus Repository automatically blocks the proxy repository if the remote repository becomes unavailable. While a proxy repository is blocked, components will still be served to clients from a local cache, but Nexus Repository will not attempt to locate a component in a remote repository. Nexus Repository periodically retests the remote repository and unblocks the proxy once the remote becomes available.

  • Maximum Component Age

    Maximum component age is only available for proxy repositories. When the proxy receives a request for a component, it does not request a new version from the remote repository until the existing component is older than the number of minutes configured in this field.

  • Maximum Metadata Age

    Maximum metadata age is only available for proxy repositories. Nexus Repository will only retrieve metadata updates from the remote repository after the number of minutes configured in this field. For component metadata, Nexus Repository honors whichever value between Maximum component age and Maximum metadata age is greater before rechecking.

  • Not Found Cache Enabled and Not Found Cache TTL

    The Not found cache enabled checkbox and corresponding Not found cache TTL field are only available for proxy repositories. When the cache is enabled, Nexus Repository will cache responses for content that is not present in the proxied repository. If Nexus Repository does not locate a component, it will cache this result for however many minutes you configure in Not found cache TTL field. During this time, Nexus Repository will not perform repeated attempts to find this component. The Not found cache enabled setting is enabled by default, and the Not found cache TTL is set to 1,440 minutes (i.e., 24 hours) by default.

  • HTTP Authentication

    The HTTP configuration section is only available for proxy repositories. In this section, you can configure access to the remote repository either via providing authentication details or connecting to a proxy server. This configuration is only necessary if it is specific to this repository.

    See HTTP and HTTPS Request and Proxy Settings

    In the HTTP Authentication section, select Username or Windows NTLM as the Authentication type. Then, provide the required Username and Password for plain authentication or Username, Password, Windows NTLM hostname ,and Windows NTLM domain for Windows NTLM-based authentication.

  • HTTP Request Settings

    The HTTP request settings section is only available for proxy repositories. Changes made to HTTP request settings are applied to all HTTP requests that Nexus Repository makes to the remote repository being proxied. Enabling these settings at the repository level will override any general settings.

    See HTTP and HTTPS Request and Proxy Settings

    You can make the following configurations to HTTP request settings:

    • User-agent customization - Enter a string to append to user-agent HTTP headers.

    • Connection retries - Enter the total number of connection attempts after an initial timeout.

    • Connection timeout - Set the timeout interval (in seconds) for requests.

    • Enable circular redirects - Allow proxy repositories to follow redirects indicated by the remote server even if they point to an already processed URL.

    • Enable cookies - Authorize using HTTP cookies sent by the remote server when processing future requests.

    https://maven.oracle.com is a server that requires both Enable circular redirects and Enable cookies. When requesting data, you are redirected to a queue of different URLs; most of these are involved with authentication.

    By enabling these options, you allow Nexus Repository to maintain the authentication state in a cookie that would be sent with each request, eliminating the need for authentication-related redirects and avoiding timeouts.

  • Proprietary Components

    The Proprietary Components field is only available for hosted repositories and requires integration with Sonatype Repository Firewall. Checking this box tells Nexus Repository and Repository Firewall that components in this repository should be considered as proprietary for namespace conflict attacks. If you are unsure if your repository contains public open-source components, do not enable this feature.

    See Namespace Confusion Protection

  • Group Member Repositories

    The Group section and Member Repositories configuration are only available for group repositories. The Member Repositories selector allows you to add and remove repositories to and from the repository group. The Members column lists all of the group member repositories. The Available column lists all repositories and repository groups that you could potentially add to the group.

    Add or Remove a Repository to or from a Group

    To add or remove a repository to the group, either drag the repository from whichever column it is into the new column in which you want it to appear, or select the repository and use the arrows that appear between the two columns to move the repository.

    Repository Order in the Group Member List

    The order of the repositories listed in the Member section is important. When Nexus Repository searches for a component in a repository group, it will return the first match. To reorder a repository in this list, click and drag the repositories and groups in the Members list or use the arrow buttons between the Available and Members list.

    The order of repositories or other groups in a group can be used to influence the effective metadata that will be retrieved from a repository group. It is recommended best practice to put hosted repositories higher in the list than proxy repositories. For proxy repositories, Nexus Repository may need to check the remote repository, which will incur more overhead than a hosted repository lookup.

    It is also recommended to place repositories with a higher probability of matching the majority of components higher in this list for best performance. These best practices are implemented in the default configuration.

Format-Specific Configurations

Some repository formats include additional configuration options: