I am a bit confused because during my development i encountered a problem that was only solveable by downgrading the maven release plugin from 2.2.1 down to 2.0-beta-9.
Basically my project was using git on github, so my scm entries in the pom were like
scm:git:git@github.com/<username>/<projectname>.git
Running release:prepare always failed because upon tagging this command was used:
git push git@github.com/<username> <tagname>
As you can see the project name was omited.
I looked in the web and eventually i found this link :
That example was using version 2.0-beta-9 and it had one big difference, instead of using the git url it just used origin!
git push origin <tagname>
And with origin everything works.
Unfortunatly i dont find a tag/attribute for the release plugin to always use origin instead of it@github.com/
Funny thing is : before tagging a push of the modified poms is done (multi module project). And there the correct url is used.
edit: Basically version 2.2.1 is right in using the scm url instead of "origin" but the tagging operation must not remove the project name from the url.
Regards