How to configure maven project to deploy both snapshot and releases to Nexus?
You need to distinguish between the releases and snapshots repository. <distributionManagement> only allows one <repository> and one <snapshotRepository> child. http://maven.apache.org/pom.html#Distribution_Management