Create a maven proxy repository in Nexus with the "layout policy" of "strict" (the default).
Then try and run a "publish indexes" task agains it. No outbound connections to the remote server will be seen.
Change the "layout policy" to "permissive". Then run "publish indexes" again. This time it will work.