<scm>
<developerConnection>scm:git:ssh://git@gitlab.com:anton_patsev/maven-release-example3.git</developerConnection>
<tag>HEAD</tag>
</scm>
string=$(cat pom.xml | grep developerConnection | sed -e s/\<developerConnection\>scm:git:ssh://g)
echo string
echo $string
developerConnection=$(echo ${string//[[:blank:]]/} | cut -c 3- | sed s/developerConnection//g | head -c-4)
echo developerConnection
developerConnection=$(echo $developerConnection| sed 's/gitlab.tools\//gitlab.tools:/g')
echo developerConnection
URL=$(xmllint -xpath "/*[local-name() = 'project' ]//*[local-name() = 'developerConnection']/text()" pom.xml | sed 's|scm:git:ssh://||')