Repository Management with Nexus

7.4. Repository Specific Smart Proxy Configuration

Once Smart Proxy has been configured and enabled as described above, you have to configure which repositories contents should be synchronized between the servers. This is done in the Repositories administration interface in a separate configuration tab titled Smart Proxy, which allows you to configure repository-specific details as compared to server wide details described above.

On the publishing Nexus server you have to enable smart proxy on the desired hosted, virtual or proxy repositories in the repository configuration. This is accomplished by selecting the Publish Updates checkbox in the Publish section of the Smart Proxy configuration for a specific repository as displayed in Figure 7.4, “Smart Proxy Settings for a Hosted Repository” and pressing save.


Figure 7.4. Smart Proxy Settings for a Hosted Repository

On the Nexus instance subscribing to the publishing server you have to create a new proxy repository to hold the synchronized artifacts. The smart proxy configuration for this repository displayed in Figure 7.5, “Smart Proxy Settings for a Proxy Repository” allows you to activate the Receive Updates checkbox in the Subscribe configuration section. You can enable prefetching the components by selecting Immediately in the Download Updated Artifacts drop-down. The default behavior is to only download components Upon Request.


Figure 7.5. Smart Proxy Settings for a Proxy Repository

With a working trust established between the publishing and subscribing Nexus servers the Smart Proxy configuration of the proxy repository on the subscribing Nexus will display connection status as displayed in Figure 7.6, “Subscription with Smart Proxy Connected”.


Figure 7.6. Subscription with Smart Proxy Connected