Changed the autoReleaseAfterClose attribute to true in the staging plugin in the root pom.xml file.