When trying to release a maven project, Git automatically tags your repository and then updates the project to a new version. However if there are any failures in between, the release cannot be fully undone and needs manual intervention to clean up the state.
The following code snippet shows how you can fully revert your project by removing both the tags and resetting the previous commit.