In NXRM 3 add a Maven proxy repository and select the option to manually block outbound connections for it.
Configure a Maven build to use the proxy repository URL as one of its remote repositories.
Perform a Maven build. When Maven requests content from the repository the status code will be 502 for content not yet cached.
Compare this to NXRM version 2, where instead a 404 response will be returned, with an HTML page containing the reason why 404 was returned is provided to the end user:
In general configuring a Maven build to point at a proxy repository is not recommended. Instead a maven build should refer to a group repository, containing the proxy repository as a member repo. A group repository will return 404 in this case, if no content found in any member, even if one or more member repos is blocked state.
Return 404 and a suitable message in the payload indicating why, if the repository does not have the content requested and the repository has been intentionally manually blocked or automatically blocked.
Maintain the condition that If the content is present and the remote cannot be reached, serve the cached content.
Make sure the group repository handling of any group repo containing this proxy repository treats the proxy member as returning no content ( not found ).