We have 2 Nexus OSS repositories (NEXUS-SITE-1 and NEXUS-SITE-2) with each having it’s own hosted-snapshot repository & proxy-snapshot repository to the other remote host. Having a problem with the proxy-snapshot repository not syncing with the remote hosted snapshot repository whenever a new artifact-snapshot version is uploaded the to remote hosted repository
NEXUS-SITE-1 (OSS 22.214.171.124.1)
NEXUS-SITE-2 (OSS 126.96.36.199.1)
SITE-1 Maven builds new artifact-version-SNAPSHOT and uploads it to NEXUS-SITE-1 hosted repo “site-1-snapshot”.
SITE-2 Maven build attempts to download dependent new artifact-version-SNAPSHOT from proxy repo “site-1-snapshot-proxy” but fails with error “Unable to resolve artifact. Could not transfer artifact”
To resolve this issue, I have to log-in to NEXUS and manually access the SITE-2 repo “site-1-snapshot-proxy” settings and select “Invalidate cache” and “Rebuild index”.
Am I missing something in the proxy settings: This is how it’s configured:
- Maximum component age: 0
- Maximum metadata age: 0
- [unchecked] Cache resposes for content not present in the proxied repository
-  How long to cache the fact that a file was not found.