How to use maven release plugin with a git repository

Hi! this is a quick entry as reminder to know how to use the plugin to release a version of the project into git repository using maven.

1. Add the scm tag in your pom.xml:

    <scm>
        <developerConnection>${developerConnectionUrl}</developerConnection>
        <tag>HEAD</tag>
    </scm>

Note: I’ve declared ‘developerConnectionUrl‘ as argument because I’m going to overwrite it when execute the release.