In some cases you may decide to setup a staging maven repository, which is different to the one you set up in the distributionManagement section of your pom.
This can be done by configuring a profile in $HOME/.m2/settings.xml like this:
<profile>
<id>deploy-to-local-repo-snapshot</id>
<properties>
<altDeploymentRepository>local-repo-snapshot::default::http://localhost:8081/nexus/content/repositories/snapshots</altDeploymentRepository>
</properties>
</profile>
You need to provide the password for the server (in this case nexus oss)
<server>
<id>local-repo-snapshot</id>
<username>someuser</username>
<password>somepass</password>
</server>
Then you can activate the profile when deploying with maven like this:
$ mvn -Pdeploy-to-local-repo-snapshot deploy
Also remember, that if your normal repository is behind a proxy, then in the proxy settings section you should exclude localhost, otherwise the deploy fails with Return code is: 503